{"name":"intl-locales-supported","version":"1.0.6","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":"index.js","typings":"lib/index.d.ts","author":{"name":"Eric Ferraiuolo","email":"edf@ericf.me"},"license":"BSD","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"},"homepage":"https://github.com/formatjs/formatjs","scripts":{"build":"tsc","prepublishOnly":"npm run build","test":"TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' mocha -r ts-node/register -r source-map-support/register -r chai/register-expect tests/index.ts --reporter spec"},"gitHead":"bbad0e2e238bf2727bf618eaa8490d945f5725d7","_id":"intl-locales-supported@1.0.6","_nodeVersion":"12.3.1","_npmVersion":"lerna/3.14.1/node@v12.3.1+x64 (linux)","dist":{"integrity":"sha512-0Cuhq8aURDEQonOBHBMBh/b22xkqhkS4kNANkTZ54a+7MVLCrWl5xOvvsYtPwCeFkFxXfS2iWSNeir8UAIY9qQ==","shasum":"5eef64f0ecb214a4b2e4f199c1acf9c22f4d7f5c","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.0.6.tgz","fileCount":11,"unpackedSize":9061,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8KntCRA9TVsSAnZWagAAeeQQAInT27Bs3+mpVzocQ/cw\nvFEyLLz/NSHKgIKcnaqJ2GWRhhhbdDY1s0sQQVuRFXdmUfTQzaU4QzOHgU59\nbEjKu8JfHshP8UjLjtCMNawUV4HBYAVBxg+V2jawQfprPhefuaTG7xCM6wBF\nQhFp8MWItbJuepM/ZokRsKFPSs6JaQZ/6LWcyKJ56E7iZXx0Z07k3h49+5uY\nugHePqBzFZCS9T3/TqSauaNb1Imimge3PEnvuoZW/vEZ17jGDRo4IGzfRNyB\nkIbOI7g/VexxJ2yAr+RQqEQ5CnnbkTm8b4+2girZ1cJDaG6QbJWeN0agZE2F\nwVPqnRpyB2V5554zPjG5pOBf7e3GL9TwiR1KOGNuKbn4VZ+eSDvzeLYsAnVq\ndsdcRZYzOdCDXfTxcng5s6mOor9iWGLsRwrUldneMDMpp0HT+pq1Hp1KHaud\ntlu7gY+uiP7YaZRwNpWTN+9RO6GEO7Th31fYVh7JeYpSXBpTm/VPVevR/fbq\nr9Jrvl8DN/MO5epKG//Ba6hGf9bwYnybFxvoeGlqmk7r1BTlE7preaKgj90F\nY0E2zzTEtjp7J2VjC709cNHWuRsn9uxFOWAF4xVSqUGMbTDWIsH1EyV7+xxL\nY1IT47Hdm3RvRozM0THF35RmHvswRoYsNL1GbLXbDMR//t+5Us+6mQ3g06It\npjRf\r\n=d3bt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBGHdfHCTWa7NT4Vp3efuQODANBa2WwoueacqkwKmno5AiBCj+by+OzLCc4Mm7vwZSWbyMx4lMoToha4tjcJKGYv/A=="}],"size":3658,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.0.6.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.0.6_1559276012888_0.04177835523201989"},"_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":1559276013015,"_cnpm_publish_time":1559276013015,"dist-tags":{"latest":"1.8.12"}}