Get the name of a number, even if it's stupidly big.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
TheoryOfNekomata b24d26de25 Add tests for stupidly big numbers пре 4 година
src Add tests for stupidly big numbers пре 4 година
tests Add tests for stupidly big numbers пре 4 година
.editorconfig Initial commit пре 4 година
.gitignore Implement tests for streams пре 4 година
.prettierrc Initial commit пре 4 година
LICENSE Initial commit пре 4 година
README.md Update README пре 4 година
package.json Add larger examples, actually test streams пре 4 година
tsconfig.json Start decoupling core code to locales пре 4 година
yarn.lock Add larger examples, actually test streams пре 4 година

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.