Get the name of a number, even if it's stupidly big.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Este repositório está arquivado. Pode ver ficheiros e cloná-lo, mas não pode fazer envios ou lançar questões ou pedidos de integração.
TheoryOfNekomata b24d26de25 Add tests for stupidly big numbers há 3 anos
src Add tests for stupidly big numbers há 3 anos
tests Add tests for stupidly big numbers há 3 anos
.editorconfig Initial commit há 3 anos
.gitignore Implement tests for streams há 3 anos
.prettierrc Initial commit há 3 anos
LICENSE Initial commit há 3 anos
README.md Update README há 3 anos
package.json Add larger examples, actually test streams há 3 anos
tsconfig.json Start decoupling core code to locales há 3 anos
yarn.lock Add larger examples, actually test streams há 3 anos

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.