{"name":"intl-locales-supported","version":"1.8.1","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":"ec6c8fef94f11be9f0435427309d9d284823ec6a","_id":"intl-locales-supported@1.8.1","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.18.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-4gCUCaLWlDXqbbPNagNIUkpV3qXzvxqJ+EK0/kxbAFzYYHMQ7Z9TE2mnO9fbnYmByMnpx0vFZjSSf8UrbgDwrQ==","shasum":"47291cfe89f0bb219feb26dc3072a26627e0d258","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.8.1.tgz","fileCount":9,"unpackedSize":15653,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1bAeCRA9TVsSAnZWagAA9/MP/3Fdunb5xK5h1KjzH5Pr\nYUaEjoKI86veGU4slvu4fbPWkgHPZvXloRTcMWmfSZTNWa0CksqXT1wSafrv\nXQjCGKpcWtx6VzEhTefR6I2PnH4Vl3deTcZNcI+/8TcGpr/NLeCeIJLscRNZ\nkt0lt4bfyibfvPfSCuFJ+vdHAnDUgTHnC6VFMq1xK79KdHplA2vWEzfDxM/E\n7JJz2FHtE0npeJ4sMy/hJXJTn0x9MqPMUuR3tTgvYcdTFsl7QOuWAhaAeLmy\ndoi6FjiHC3XCk5YUMMSHOr8JvuywippXG3BZCHWDVYESrLBNVMz/HMO217qF\n1WB8is7FzgprwhubqCW7uwxqrCH17MI4g5Dd70P9EKVqpFZR4uTVnY/RnT3H\nfuHbkOhpo6OYzEUqR2PYrCwEMcGGPufoPblIKrAgOmt0f4pcHmAS2NtpPI/F\n07RQAhx6157MshNU1Xr7GO1+nejvRsKa4FS1pJtqE3AMtzE97FZjBL0zr9SX\n43K2wSxkMijs9EpviHxCxrJ/Ui48V+dxqLLT82oI3kqFoEK6OhNMMNO2qoLg\nUkZbs2CL4keuAVp3ZNUM8MDgtkb4ezemUVtTlii52UICaJx3Y8mkVqSrH1cW\n7qorMMki2rk92KdTuJyqjajsdPZ0qAyx77lqyPU9H88lXdBVolk0zngowTgB\nBciq\r\n=rnX+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpt0MFZGytqSI9Q8FsmOeG5PDfGZMq8OnPdRBpw3EDDAiBZIzNlS6fTQwI3fD2vXmMk0oEu3BGwtnNcgCOVa7vsaA=="}],"size":4010,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.8.1.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.1_1574285342183_0.5620569825935919"},"_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":1574285342373,"_cnpm_publish_time":1574285342373,"dist-tags":{"latest":"1.8.12"}}