{"name":"intl-locales-supported","version":"1.4.3","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","types":"dist/index.d.ts","type":"module","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"},"homepage":"https://github.com/formatjs/formatjs","scripts":{"clean":"rimraf dist lib","mjs":"find ./dist -depth -name \"*.js\" -exec sh -c 'f=\"{}\"; mv -- \"$f\" \"${f%.js}.mjs\"' \\;","build":"tsc && npm run mjs && tsc -p tsconfig.cjs.json","test":"mocha --opts ../../mocha.opts tests/index.ts"},"gitHead":"5712b2950f1ca82c7ea987a88a490a28157838fc","_id":"intl-locales-supported@1.4.3","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-vkjv1mbUHy9N0gATGQ6P/ZxkxCeJfD6fBDEdwdYG3MfQfwGC5rjAFBZglH58UtGUhA22Pr/ZDxwkhr/34V8VPw==","shasum":"2cbfebe94e3954350622b518b7e1d42324ff69c9","tarball":"http://registry-npm.ywwl.com/intl-locales-supported/download/intl-locales-supported-1.4.3.tgz","fileCount":8,"unpackedSize":13029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSZCKCRA9TVsSAnZWagAAmH8P/3/ljBiixbP6ltSjYj8V\nXBBEz5QMYpkx2phoCWTQTy9tgJJZj8SlkF2IKbtCe64AiUqqTCI0EoBWJn3v\ndhIa/mbV8bt0Z8iXteZhsAVKo8eZaqK3ouItW+9epGn6NvuTrafXbEXSO+lQ\nF+9QcRNxZBANSuSaXoW8Xyqn1qWmqk43+xjOYR2iKnPTMfIJU/tvNBezQN9p\nI7XxmWB3fxEk7LJFIav8PBcohoRdST3PP+5OYHTm0VF94W7+hhQsRiY7hOJh\nVKhRZTOY+Elh+y6j+fYE0kV4lZS1dajCbD3QWh3GPVuch9qKGJuBN6nNyOeQ\n0Sf6o4nePEvi/i/3ekg5HIO7afMH2IiHeGPz/jGB4KQo4I9HIreZj8qmsVi0\n7WHpuJyp1MiHS7J0Pg80hfulqHu2pF2lml0uvV1KAJ+IZ0pBrlPjssZQ5Mj8\nIDM28Tsx87k71LRoKzTKwGwbsAVkc5jgxeaySG5BC4fI4Hwk4KyJR4mU7cdE\nb6LKLEx8oXQz+hgtMY7JHyF6Ch054mCHN+fJc+SYs1kFgtTVdW/6gnbCvLEK\nBondEKetgJr/QmoAk94oSyBTdvQ3xmMFsNiWN4WZl8x3YGr2DScyTEcj3LwF\nHTSbdjKencZdVLzxdnjV8uz5kR9YoF1HYFKzW6lb1MzkZ1HxMzfSYQo7S5B7\nxiYO\r\n=4Gde\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLJYS1mFiERytI2OPt/1hyEKMeAu2q00QV6qjUxpPJbAIgSxWG34m9iw08NhyJq+f+fHKU2ec/fDUn1UeFIFb+Lro="}],"size":3590,"noattachment":false,"key":"/intl-locales-supported/-/intl-locales-supported-1.4.3.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.4.3_1565102217535_0.0059569414442051105"},"_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":1565102217630,"_cnpm_publish_time":1565102217630,"dist-tags":{"latest":"1.8.12"}}