polyfill-intl-enumeration
v1.0.0
Published
Polyfill for intl enumeration
Downloads
3,183
Maintainers
Readme
About
Polyfill for Intl.supportedValuesOf.
❤️ Awesome Features:
- 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/[email protected]/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