UNPKG

intl-pluralrules

Version:
80 lines (79 loc) 2.58 kB
{ "name": "intl-pluralrules", "version": "2.0.1", "description": "Intl.PluralRules polyfill", "keywords": [ "unicode", "cldr", "i18n", "internationalization", "pluralization" ], "author": "Eemeli Aro <eemeli@gmail.com>", "license": "ISC", "homepage": "https://github.com/eemeli/intl-pluralrules#readme", "repository": "eemeli/intl-pluralrules", "files": [ "factory.*", "plural-rules.*", "polyfill.*" ], "type": "commonjs", "main": "./polyfill.js", "exports": { ".": "./polyfill.js", "./factory": [ { "import": "./factory.mjs", "require": "./factory.js" }, "./factory.js" ], "./plural-rules": "./plural-rules.js", "./polyfill": "./polyfill.js", "./package.json": "./package.json" }, "browser": { "./factory.js": "./factory.mjs" }, "react-native": { "./factory.js": "./factory.js" }, "browserslist": [ "> 0.25%, not dead" ], "prettier": { "arrowParens": "avoid", "semi": false, "singleQuote": true, "trailingComma": "none" }, "devDependencies": { "@babel/core": "^7.11.4", "@babel/preset-env": "^7.11.0", "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^9.0.0", "c8": "^8.0.0", "chai": "^4.3.6", "make-plural": "^7.0.0", "mocha": "^10.0.0", "mocha-selenium-bridge": "^0.3.0", "rollup": "^2.26.5", "rollup-plugin-terser": "^7.0.0", "test262-harness": "^10.0.0" }, "scripts": { "build": "rollup -c", "clean": "git clean -fdxe node_modules -e examples/node_modules", "prepublishOnly": "npm test && npm run build", "test": "c8 mocha test/*.test.mjs", "pretest262": "rollup -c test/rollup.test262.js", "test262": "test262-harness --error-for-failures --features-exclude cross-realm --prelude test/dist/test262-prelude.js 'test262/test/intl402/PluralRules/**/*.js'", "pretest:browsers": "npx rollup -c test/rollup.browser.js", "test:browsers": "npm run test:edge && npm run test:firefox && npm run test:safari", "test:edge": "BROWSER=Edge:110 mocha-selenium-bridge --driver ./test/browserstack-driver.js http://localhost:8000/test/browser-test.html", "test:firefox": "BROWSER=Firefox:110 mocha-selenium-bridge --driver ./test/browserstack-driver.js http://localhost:8000/test/browser-test.html", "test:safari": "OS='OS X:Big Sur' BROWSER=Safari:14.1 mocha-selenium-bridge --driver ./test/browserstack-driver.js http://localhost:8000/test/browser-test.html" } }