{"_id":"@asutrick/n2words","name":"@asutrick/n2words","dist-tags":{"latest":"1.16.4"},"versions":{"1.16.4":{"name":"@asutrick/n2words","version":"1.16.4","description":"n2words converts a numerical number into a written one, supports 27 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":{"name":"Wael TELLAT"},"contributors":[{"name":"Tyler Vigario","url":"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","scripts":{"bench":"node bench.js","build":"webpack --config webpack.config.js --progress","build:types":"npx -p typescript tsc lib/n2words.js dist/n2words.js --target es6 --module esnext --allowJs --declaration --emitDeclarationOnly","coverage":"c8 ava","lint":"eslint --config .eslintrc.json lib/ test/ examples/ bench.js","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.22.8","@babel/preset-env":"^7.22.7","ava":"^5.3.1","babel-loader":"^9.1.3","benchmark":"^2.1.4","c8":"^8.0.0","chalk":"^5.3.0","chromedriver":"^114.0.2","core-js":"^3.31.1","eslint":"^8.44.0","eslint-plugin-ava":"^14.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jsdoc":"^46.4.3","eslint-plugin-node":"^11.1.0","microtime":"^3.1.1","selenium-webdriver":"^4.10.0","webpack":"^5.88.1","webpack-cli":"^5.1.4"},"engines":{"node":"16 || 18 || >=20"},"gitHead":"d2f4c1dd101975c83c2576f2b19d52bc11b47a4c","_id":"@asutrick/n2words@1.16.4","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-7KoPhEAkFoOCW1cB14fWNFrdwZLtLehTUPh5QhObuLZgUxSFzZ4W/NjHF5/SHhPkJbicYqVe03+E23r/MsxLbg==","shasum":"56f3ba8183098a95a30ee4974364f6537f8c3805","tarball":"https://registry.npmjs.org/@asutrick/n2words/-/n2words-1.16.4.tgz","fileCount":33,"unpackedSize":106083,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2U9uooo+o0A1adUW58HVaZBEzTeYETdg0xupI36MMygIhAOK8A++OYvMysGUx3Jc5lRYIZWIIfw9hjEpPHAf25HaO"}]},"_npmUser":{"name":"asutrick","email":"austindsutrick@gmail.com"},"directories":{},"maintainers":[{"name":"asutrick","email":"austindsutrick@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n2words_1.16.4_1690475447127_0.14171529826646356"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-27T16:30:47.022Z","1.16.4":"2023-07-27T16:30:47.301Z","modified":"2023-07-27T16:30:47.582Z"},"maintainers":[{"name":"asutrick","email":"austindsutrick@gmail.com"}],"description":"n2words converts a numerical number into a written one, supports 27 languages and has zero dependencies.","homepage":"https://github.com/forzagreen/n2words#readme","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"],"repository":{"type":"git","url":"git+https://github.com/forzagreen/n2words.git"},"contributors":[{"name":"Tyler Vigario","url":"https://github.com/TylerVigario"}],"author":{"name":"Wael TELLAT"},"bugs":{"url":"https://github.com/forzagreen/n2words/issues"},"license":"MIT","readme":"# n2words\r\n\r\n[![Test](https://github.com/forzagreen/n2words/workflows/Test/badge.svg?branch=master)](https://github.com/forzagreen/n2words/actions)\r\n[![Coverage Status](https://coveralls.io/repos/github/forzagreen/n2words/badge.svg?branch=master)](https://coveralls.io/github/forzagreen/n2words?branch=master)\r\n[![npm](https://img.shields.io/npm/v/n2words.svg)](https://npmjs.com/package/n2words)\r\n[![npm](https://img.shields.io/npm/dw/n2words)](https://npmjs.com/package/n2words)\r\n[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/n2words/badge)](https://www.jsdelivr.com/package/npm/n2words)\r\n\r\n__n2words__ converts numerical numbers into written ones, supports [27 languages](https://github.com/forzagreen/n2words#supported-languages), and has zero dependencies.\r\n## This Fork\r\n\r\nThis fork changes the English written number functionality. Significant words are capitalized and 'and' is removed.\r\n\r\n## Example\r\n\r\n```js\r\nn2words(123)   // 'One Hundred Twenty-Three'\r\nn2words(-1.5)  // 'minus One point Five'\r\n\r\nn2words(123, {lang: 'fr'})  // 'cent vingt-trois'\r\nn2words(123, {lang: 'es'})  // 'ciento veintitrés'\r\nn2words(123, {lang: 'ar'})  // 'مائة و ثلاثة و عشرون'\r\n```\r\n\r\nSee the [Wiki](https://github.com/forzagreen/n2words/wiki) for examples and advanced usage like [importing only specific languages](https://github.com/forzagreen/n2words/wiki/Importing-only-specific-languages).\r\n\r\n## Install\r\n\r\n```sh\r\nnpm install n2words\r\n```\r\n\r\n## Usage\r\n\r\n### ESM\r\n\r\n```js\r\nimport n2words from 'n2words'\r\n```\r\n\r\n### CommonJS ([dynamic import](https://nodejs.org/api/esm.html#import-expressions))\r\n\r\n```js\r\nimport('n2words').then(({default: n2words}) => {\r\n    n2words(100)\r\n})\r\n```\r\n\r\n### Browser\r\n\r\n```html\r\n<script src=\"./n2words.js\"></script>\r\n<script>\r\n    n2words(100)\r\n</script>\r\n```\r\n\r\nn2words is also available on [jsDelivr](https://www.jsdelivr.com/package/npm/n2words).\r\n\r\n## Supported Languages\r\n\r\n- `en` (English, default)\r\n- `ar` (Arabic)\r\n- `az` (Azerbaijani)\r\n- `cz` (Czech)\r\n- `dk` (Danish)\r\n- `de` (German)\r\n- `es` (Spanish)\r\n- `fr` (French)\r\n- `fa` (Farsi)\r\n- `he` (Hebrew)\r\n- `hr` (Croatian)\r\n- `hu` (Hungarian)\r\n- `id` (Indonesian)\r\n- `it` (Italian)\r\n- `ko` (Korean)\r\n- `lt` (Lithuanian)\r\n- `lv` (Latvian)\r\n- `nl` (Dutch)\r\n- `no` (Norwegian)\r\n- `pl` (Polish)\r\n- `pt` (Portuguese)\r\n- `ru` (Russian)\r\n- `sr` (Serbian)\r\n- `tr` (Turkish)\r\n- `uk` (Ukrainian)\r\n- `vi` (Vietnamese)\r\n- `zh` (Chinese)\r\n\r\n## Contributing\r\n\r\n__This library is in active development.__ We want to improve the design and process for language contributors and add more languages. Bug reports and feature requests are also beneficial!\r\n\r\n## License\r\n\r\n[MIT](https://github.com/forzagreen/n2words/blob/master/LICENSE)\r\n","readmeFilename":"README.md"}