Get the name of a number, even if it's stupidly big.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Это архивный репозиторий. Вы можете его клонировать или просматривать файлы, но не вносить изменения или открывать задачи/запросы на слияние.
TheoryOfNekomata b24d26de25 Add tests for stupidly big numbers 3 лет назад
src Add tests for stupidly big numbers 3 лет назад
tests Add tests for stupidly big numbers 3 лет назад
.editorconfig Initial commit 3 лет назад
.gitignore Implement tests for streams 3 лет назад
.prettierrc Initial commit 3 лет назад
LICENSE Initial commit 3 лет назад
README.md Update README 3 лет назад
package.json Add larger examples, actually test streams 3 лет назад
tsconfig.json Start decoupling core code to locales 3 лет назад
yarn.lock Add larger examples, actually test streams 3 лет назад

README.md

number-name

Converts a number into its name.

See the demo here.

Why?

Inspired by number-to-words. Thinking I could improve on the code to include big integers, I looked for some info and found Landon Curt Noll’s Web page describing the reconstructed English naming system of numbers. I decided to port his Perl script into JavaScript.

Installation

Install via Yarn:

yarn add @theoryofnekomata/number-name

TODO

Please star the repo if you find it useful in your projects.

License

MIT. See LICENSE file for details.