{"name":"intl-locales-supported","version":"1.8.4","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":"6d6aa5ccec18f2f04be72a6e510193c0a1210725","_id":"intl-locales-supported@1.8.4","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.19.0/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-wO0JhDqhshhkq8Pa9CLcstqd1aCXjfMgfMzjD6mDreS3mTSDbjGiMU+07O8BdJGxed7Q0Wf3TFVjGq0W3Y0n1w==","shasum":"e1d19812afa50dc2e2a2b4741ceb4030522d45b1","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.8.4.tgz","fileCount":9,"unpackedSize":16247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3VdwCRA9TVsSAnZWagAAo1cQAIIN6PwKnq2N9E13E0D0\nH24Trsytg1lIB9akvemzaC2oXZl36dAJcYD5dYP5VPgFLl3JzmAeBQu86/GJ\nygGyOMpktyy0VWypxpfbSz5IdmhQaTVrq2w+98n2zGNTjCC64CLwY2Vpwrpa\nrdsTjY/Wquqs6RcJtan+QB+qVaJlpYh0awLzsB5x0hSBUrKBtQaoMjp2nT+K\n6qFpPuQCG0uv+Yz/hBIg5JPNAxF74BXvdI+SdOLUdQkNyoFsExvrSYwXS5DS\nDGb6R9GA6LY6xo6PyLp4qGqy4d3UcobbILUqieG4Zc3RITNA9rvXtGNd4wUh\ny6Wq5ICH05/GsEqi8ID4zLFHjqiz3dzjKg4IcsUUKARtQkLJeagA5Z+cE1bY\n/H6ZXlo3kXJqEIxe7V6HwOsirr2u3R+3CfMR+7uPkpeL/wsnBTejNHI6Qv4u\nskQdKwB77e+kKcmePmiMwQAAGN2E6VoZO5vVqbjOZgJPGBa56KGQEhUMdts2\nnjl8lnhtHnwoJprrzotATm61x+pVKK7ytKeWo016Xqfeb5NnMsLz0JoGTZMi\nEQi/Wk2KnP29wslRkBbBrqyYW5+Q1zkDdHxlRTLLgWexZ4C9LoFsrjw4964u\nmnS6DWj8ty0DH12fjvUMjfsKG5dKD3Ut4irBgyiuWmNdWLjSFeTxDHk4tkSI\n56XN\r\n=DW+E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3YZgWkc9tJ9OejFVHtbWqfLWSIdBzL76t2n2AgmDzvQIhALi/23maGXIQ35MpyeMH6cX1zASWOJr5H4NHcI9jn7nf"}],"size":4089,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.8.4.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.4_1574786927524_0.5822268396444825"},"_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":1574786928072,"_cnpm_publish_time":1574786928072,"dist-tags":{"latest":"1.8.12"}}