{"name":"intl-locales-supported","version":"1.8.2","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":"b506d5e1cb2c0f7266e728088dae409046a6094e","_id":"intl-locales-supported@1.8.2","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.18.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-O2euCUWzbHfFEEIm493LPYNGOLjLfAVTjGsApXUn72rLqolC2TPDFWnh8fT1wlcQ0UHE6aAKHHLPbtkEMlRFlA==","shasum":"bec6c8d6efabe5703b6b375bf91b9472f29a0e80","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.8.2.tgz","fileCount":8,"unpackedSize":14951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1iHpCRA9TVsSAnZWagAA3MoP/AnLyaWheJ3dOw4ZqYPY\nU11nKdkncudUE1QzjKyfHrD5R5l1pH5d073MN52rVrAUfK3BudjpPFweClza\nMDFc1BEyrswI7IW4TBPgAR4CuZWX7P48DTo/8ON01XWGwXer1/ktoXAvbYgZ\nw9HyhxR+P9DxDwPWWksfQgGQaHeCKjGzsHwEyeDvMc1KCaTM+g5u7tccXnGO\nMx+Px/cqz6vWBrmzmp+aoiV53MUaTnjVu28OPAtu1Iwn8kvlJeR6vHbj/yE1\ns1dbq+uQYBEgvTe2tUeb4YlYo9P/Hu78/wX+fa27mJqtOc10XLxsoLe29nqN\nF27KbKH8elpxG92+wHrpLOBvWt3hX0Xuv2jAt8upz64w6EwGxJDATzBzu7OD\nfkbQawenqHLDLn1M/xxqRjynhbTxdx/bqyqVno3VZNVIPST9+/Ge+kPUFySl\nSlc/QoQY9QT+af0Gn1x8+IKed0ujMCimpPE8pNWo1BoFl/dQAqI0mx3uUeys\np6g9MrcIBS1jEPt/0qFT2mnSQQuAdP/+foWKiA9LWj035HdLcLWHOfRriAW7\ntVN/hhD2CTwEefjsAQuSS772HReR+f/DeRg3MKif1AXtALuY7oCeMQaVcrOH\nPMc+sIS1UZYrEnNTEd0vcfLv97xHyedbBJEhZQcVKwpdnpdupHT4cI7WY1ru\nm6k2\r\n=b4uL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIERQHmzPxNqsG+46hQg2slIreVu7rCq3aZZ+2IGHozowAiEA6vnrd+DbpWUvusU1JsqMzuy+uPFUmRUAcye2OXZzzYw="}],"size":3963,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.8.2.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.8.2_1574314473293_0.5405708743789408"},"_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":1574314473411,"_cnpm_publish_time":1574314473411,"dist-tags":{"latest":"1.8.12"}}