n2words
Version:
n2words converts a numerical number into a written one, supports 28 languages and has zero dependencies.
126 lines (125 loc) • 2.93 kB
JSON
{
"name": "n2words",
"version": "1.23.0",
"description": "n2words converts a numerical number into a written one, supports 28 languages and has zero dependencies.",
"keywords": [
"n2words",
"convert",
"number",
"word",
"text",
"natural",
"language",
"english",
"french",
"spanish",
"german",
"portuguese",
"italian",
"turkish",
"russian",
"czech",
"norwegian",
"danish",
"polish",
"ukrainian",
"lithuanian",
"latvian",
"arabic",
"hebrew",
"korean",
"dutch",
"serbian",
"farsi",
"persian",
"chinese",
"hungarian",
"indonesian",
"croatian",
"vietnamese",
"azerbaijani"
],
"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)"
],
"sideEffects": false,
"type": "module",
"exports": {
".": "./lib/n2words.js",
"./i18n/*.js": "./lib/i18n/*.js"
},
"jsdelivr": "dist/n2words.js",
"unpkg": "dist/n2words.js",
"files": [
"lib/*",
"dist/*"
],
"scripts": {
"bench": "node bench.js",
"build": "webpack --progress",
"build:types": "npx -p typescript tsc lib/n2words.js dist/n2words.js --target es6 --module nodenext --allowJs --declaration --emitDeclarationOnly",
"coverage": "c8 ava",
"docs": "jsdoc -c ./conf.json",
"lint": "npm run lint:js && npm run lint:md",
"lint:js": "eslint lib/ test/ examples/ *.js",
"lint:md": "markdownlint-cli2 *.md",
"test": "ava --verbose",
"test:cjs": "ava --verbose test/import.cjs",
"test:core": "ava --verbose test/core.js",
"test:i18n": "ava --verbose test/i18n.js",
"test:web": "ava --verbose test/web.js"
},
"ava": {
"files": [
"test/*",
"!test/web.js"
]
},
"c8": {
"all": true,
"include": [
"lib/"
],
"reporter": [
"lcov",
"text"
]
},
"devDependencies": {
"@babel/core": "^7.28.0",
"@babel/preset-env": "^7.28.0",
"@eslint/js": "^9.32.0",
"@stylistic/eslint-plugin-js": "^2.13.0",
"ava": "^6.4.1",
"babel-loader": "^9.2.1",
"benchmark": "^2.1.4",
"c8": "^10.1.3",
"chalk": "^5.5.0",
"chromedriver": "^138.0.5",
"core-js": "^3.45.0",
"eslint": "^9.32.0",
"eslint-plugin-ava": "^15.1.0",
"eslint-plugin-jsdoc": "^52.0.3",
"eslint-plugin-n": "^17.21.3",
"eslint-plugin-unicorn": "^60.0.0",
"jsdoc": "^4.0.4",
"markdownlint-cli2": "^0.18.1",
"microtime": "^3.1.1",
"selenium-webdriver": "^4.34.0",
"webpack": "^5.101.0",
"webpack-cli": "^5.1.4"
},
"engines": {
"node": "^20 || ^22 || >=24"
}
}