{"name":"intl-locales-supported","version":"1.6.0","description":"Utility to help you polyfill the Node.js runtime when the Intl APIs are missing, or if the built-in Intl is missing locale data that you need.","main":"dist/index.js","module":"lib/index.js","types":"dist/index.d.ts","author":{"name":"Eric Ferraiuolo","email":"edf@ericf.me"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git+https://github.com/formatjs/formatjs.git"},"keywords":["i18n","intl","internationalization","localization","globalization"],"bugs":{"url":"https://github.com/formatjs/formatjs/issues"},"sideEffects":false,"homepage":"https://github.com/formatjs/formatjs","scripts":{"clean":"rimraf dist lib","build":"tsc && tsc -p tsconfig.cjs.json","test":"cross-env NODE_ICU_DATA=../../node_modules/full-icu mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"b68be70a01a39456f8de89076178f23820af4e3d","_id":"intl-locales-supported@1.6.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.16.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-n8J5v2oBjaOu065/HXeDFU3huv76Ehwj6YovPI7IJ3DCf0EvvwL1lncRj/qobmlyDh0LumwxpU+pVhFR34xjEA==","shasum":"6f66501ef23a58c87f242021cfadb1b012770808","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.6.0.tgz","fileCount":9,"unpackedSize":14718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdk3SLCRA9TVsSAnZWagAAHksP/A4hSer1oWtRnuBB6RkI\n1VAApfZQfk4tZQUD+HrNjltBsrU0UCPb6DHW4LY7zpRmDJKNS73aakEmQmM3\nNcQt2exAAlfg1+ba9YWCnte9l5bPOMMkqWOGXFcIlL6ERq/0ukz/XWmnkaEA\njk1xDUlpdLx0qL1Wd7sz53C2J3CHgvia99pNxpXNDCARQevK5CUahwt3sbKm\n9+H8qA1ml34fIZZvDS9gF9DDQxNBTnrCrrFDxvQj8dAjM1VVFKSym1H5pjXp\n0yPpwu20jeLvmlud7Mu8WbDUZARHxuSsuDnDiKC75Y1ya2dRc25Ajd5yho/W\njmQipgBAwhKQKKpHFSIRpvuozF+/Dp73ZR03gCVkMLmXmH59f8TxvdYfRd0q\nTv3vWDiU4LY8D5tEAhvZO1/0XGKfpOlq+oNrhuyBlpoTs7QFg6dKTvlMXfhu\nqEHHM1zg69XfJ9O41yUfMqgJ6IYsFsAWM8r6J+Co0GNXddcG15KdUT6Z+Ezt\n9wopN3f969ME6eAuMDbcGlge1gSnovNPTEg1cHLB3iZnYOuE/4KtF8SI9bvq\ntRCL35sw9i6JS/IC2K12VFGGzon5W0aNpcGEI12POxwZ6/p/eqBSjMmMexJh\nGu7NgSbGa0AGsQ+sswHTsw/kd9vZlm8O/Cr+5B0nSV+3SSKNL2jF9yzd2zMJ\nRDig\r\n=N31/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC2oE97oUrGh8SsJTqIPpc+jYGWS1DbTcRfbDvJ0IeycAiEApdzkDABVfGAGv6bSJWQsyxU29DvtRmbsFHztu2fT6eY="}],"size":3880,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.6.0.tgz"},"maintainers":[{"name":"ericf","email":"eferraiuolo@gmail.com"},{"name":"okuryu","email":"okuryu@okuryu.com"},{"name":"redonkulus","email":"seth@bertalotto.net"}],"_npmUser":{"name":"longlho","email":"holevietlong@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/intl-locales-supported_1.6.0_1569944714490_0.9342362526620194"},"_hasShrinkwrap":false,"readme":"# intl-locales-supported\n\nUtility to help you determine if your runtime has modern Intl API & locales support. This specifically checks for `Intl.NumberFormat`, `Intl.PluralRules` & `Intl.RelativeTimeFormat` and is being used by `react-intl`.\n\n[![npm Version](https://badgen.net/npm/v/intl-locales-supported)](https://www.npmjs.org/package/intl-locales-supported)\n![size](https://badgen.net/bundlephobia/minzip/intl-locales-supported)\n\n## Usage\n\n```js\nconst areIntlLocalesSupported = require('intl-locales-supported');\n\nconst localesMyAppSupports = [\n  /* list locales here */\n];\n\n// Determine if the built-in `Intl` has the locale data we need.\nif (\n  !areIntlLocalesSupported(localesMyAppSupports, [\n    Intl.PluralRules,\n    Intl.RelativeTimeFormat,\n  ])\n) {\n  // `Intl` exists, but it doesn't have the data we need, so load the\n  // polyfill and replace the constructors we need with the polyfill's.\n  require('@formatjs/intl-pluralrules/polyfill');\n  require('@formatjs/intl-pluralrules/locale-data/de'); // Load de\n\n  require('@formatjs/intl-relativetimeformat/polyfill');\n  require('@formatjs/intl-relativetimeformat/locale-data/de'); // Load de\n}\n```\n","publish_time":1569944714641,"_cnpm_publish_time":1569944714641,"dist-tags":{"latest":"1.8.12"}}