polyfill-intl-enumeration
Polyfill for Intl.supportedValuesOf
About
Polyfill for Intl.supportedValuesOf.
- Simple and clean way to use
Intl.supportedValuesOf
in Node.js and Browser.🔥 - Zero production dependencies
🎃 - Easy to use and great test coverage
✅
Usage in node.js
Install
npm install polyfill-intl-enumeration
Use
require('polyfill-intl-enumeration')
console.log(Intl.supportedValuesOf('unit'))
// ['acre', 'bit', 'byte', 'celsius'...
Usage in Browser
<script src="https://unpkg.com/polyfill-intl-enumeration@1.0.0/dist/polifyll-intl-enumeration.min.js"></script>
<script>
console.log(Intl.supportedValuesOf('unit'))
// ['acre', 'bit', 'byte', 'celsius'...
</script>
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
As well the project has an autogenerated CHANGELOG.md
Authors
- Ulises Gascón - *Initial work- - @ulisesGascon
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- Thanks to @mathiasbynens for the great documentation about
globalThis
hack in Node.js. See - Thanks to @ryzokuken and @romulocintra for the guidance on the specs