UNPKG

n2words

Version:

Convert numbers to words in 70+ languages with zero dependencies. Supports BigInt, decimals, and browser/Node.js environments.

167 lines (166 loc) 4.36 kB
{ "name": "n2words", "version": "5.1.2", "description": "Convert numbers to words in 70+ languages with zero dependencies. Supports BigInt, decimals, and browser/Node.js environments.", "keywords": [ "number-to-words", "num2words", "n2words", "to-words", "spell-out", "cardinal-numbers", "ordinal-numbers", "currency-to-words", "i18n", "tree-shakeable", "zero-dependencies", "esm", "typescript", "bigint" ], "homepage": "https://github.com/forzagreen/n2words#readme", "bugs": { "url": "https://github.com/forzagreen/n2words/issues" }, "repository": { "type": "git", "url": "git+https://github.com/forzagreen/n2words.git" }, "license": "MIT", "author": "Wael TELLAT", "contributors": [ "Tyler Vigario (https://github.com/TylerVigario)" ], "funding": { "type": "github", "url": "https://github.com/sponsors/forzagreen" }, "type": "module", "sideEffects": false, "exports": { "./*": { "types": "./src/*.d.ts", "import": "./src/*.js", "default": "./src/*.js" }, "./utils/*": null, "./package.json": "./package.json" }, "typesVersions": { "*": { "utils/*": [], "*": [ "./src/*.d.ts" ] } }, "files": [ "src/**/*.js", "src/**/*.d.ts", "dist/**/*.js", "README.md", "LICENSE", "CHANGELOG.md" ], "scripts": { "bench": "node --expose-gc bench/index.js", "browserslist": "browserslist", "browserslist:coverage": "browserslist --coverage", "build": "node --run clean && node --run build:types && node --run build:dist", "build:dist": "node --run clean:dist && rollup -c", "build:types": "node --run clean:types && tsc --project tsconfig.build.json", "clean": "node --run clean:dist && node --run clean:types", "clean:all": "node --run clean && node --run clean:artifacts", "clean:artifacts": "rimraf coverage .nyc_output", "clean:dist": "rimraf dist", "clean:types": "rimraf \"src/**/*.d.ts\" --glob", "coverage": "c8 node --run test:unit", "coverage:check": "c8 check-coverage", "docs:languages": "node scripts/generate-languages-md.js", "lang:add": "node scripts/add-language.js", "lint": "node --run lint:js && node --run lint:md", "lint:fix": "eslint --fix && markdownlint-cli2 --fix", "lint:js": "eslint", "lint:md": "markdownlint-cli2", "prepack": "node --run build", "prepare:husky": "husky", "test": "node --run test:unit && node --run build:types", "test:unit": "ava \"test/*.test.js\" \"test/utils/*.test.js\"", "typecheck": "tsc --project tsconfig.build.json --noEmit" }, "ava": { "extensions": [ "js" ], "files": [ "test/*.test.js", "test/utils/*.test.js" ], "timeout": "30s", "concurrency": 8, "workerThreads": false }, "c8": { "all": true, "include": [ "src/" ], "exclude": [ "src/**/*.d.ts" ], "reporter": [ "lcov", "text", "json-summary" ], "lines": 90, "statements": 90, "functions": 90, "branches": 85 }, "lint-staged": { "*.{js,cjs,mjs}": [ "eslint --fix" ], "*.md": [ "markdownlint-cli2 --fix" ] }, "devDependencies": { "@commitlint/cli": "^21.2.1", "@commitlint/config-conventional": "^21.2.0", "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2", "@eslint/js": "^10.0.1", "@rollup/plugin-terser": "^1.0.0", "@rollup/plugin-virtual": "^3.0.2", "@stylistic/eslint-plugin": "^5.10.0", "@types/node": "^26.1.1", "ava": "^8.0.1", "browserslist": "^4.28.6", "c8": "^11.0.0", "chalk": "^5.6.2", "eslint": "^10.7.0", "eslint-plugin-ava": "^17.0.1", "eslint-plugin-compat": "^7.0.2", "eslint-plugin-es-x": "^10.0.0", "eslint-plugin-import-x": "^4.17.1", "eslint-plugin-jsdoc": "^63.0.13", "eslint-plugin-n": "^18.2.2", "fast-check": "^4.9.0", "globals": "^17.7.0", "husky": "^9.1.7", "lint-staged": "^17.0.8", "markdownlint-cli2": "^0.23.0", "rimraf": "^6.1.3", "rollup": "^4.62.2", "tinybench": "^6.0.2", "typescript": "^7.0.2" }, "engines": { "node": "^22 || ^24 || ^26" }, "publishConfig": { "access": "public", "provenance": true } }