{"name":"intl-locales-supported","version":"1.8.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":"eebc5905d87538092ef0227e3f612263b51b37ae","_id":"intl-locales-supported@1.8.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.18.3/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-y1K5NaNM/WjwZcRy4TtRZ4kR8TCXfoPlX2MFbFGWqqYBD0jPG8liX/cU8aBzk2j5+bu1W6ztlLtOfCPAEwQc3A==","shasum":"cfec56f5ac8cbb828bd5ce3155c4392555cd5c5c","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.8.0.tgz","fileCount":9,"unpackedSize":15408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueu1CRA9TVsSAnZWagAAtuMP/1A1/wqIYdX0BwwwMG87\n2gArH1x9yhOmDH+QH3LCj2GkGoL6efrQogkIGZfEcZb2lEmrOeUAhZ85DukU\nLuebctwEWqqUj0pI2KnRfojF340V8lb2URYZTyhkWxOIBI6xgee62Avvi4PZ\nwL5kmtu7eEyHfVT2ihkN+K5YxzXcGLSVJpUDTwqb2oBV+LPC0+6CNQKVEa7y\n5Xx205wWcefTkN7BY6iFCn9gw3f6+kxqbLEHdejlQOS5aQx7ruaSccxINK+b\nEgu92gVyqBouP7Foc1QQLLQsq/hr3ZaANFNLyFvITiLxBijkgH3Pl5V5gM77\nkYRCGVshckDmeA6AGPf6gABOFyN/87toI2Ky3WGNUVlvzL3n0qPaAp9fDl23\n4GbJzY8fxBt0o2j8KY43iFQmPgJ2rNvrIwADJsUgul98Jfz73EVApcaRF/ll\n2SBFAHJ1CvNGsygeA0YEG23rXv3ZjC8Us8S5xL7N0pEKvZyskzYzgd1Lyg2w\nhZ/m4WyG5m8P4fv4uy5ri3vswnocCsT3TUm7M/fwDZBaQrAutv51f7xguGPd\noXaKSzh3VTjuNZIwSJmeWisfMttRSvYF8BDegiq1iCU7OwoVd0m7yvnp5RA+\nrH9PK9Hi/tyAGmCJalsx2j3/VtPOZIISa00nSVdy4QGEtkRXAmM+bpvglvFy\nghYM\r\n=+vQH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9+DTGfB/Ew92riYNiHrYE4lN8WSYZOKyXBwNktN7NQAiEAicFE5ajWEezIQl4DdL8F4IyrOBGq5mftKgVDd8kVoD8="}],"size":3966,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.8.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.8.0_1572465589078_0.4906291094105195"},"_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":1572465589217,"_cnpm_publish_time":1572465589217,"dist-tags":{"latest":"1.8.12"}}