Get the name of a number, even if it's stupidly big.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ce dépôt est archivé. Vous pouvez voir les fichiers et le cloner, mais vous ne pouvez pas pousser ni ouvrir de ticket/demande d'ajout.
TheoryOfNekomata b24d26de25 Add tests for stupidly big numbers il y a 3 ans
src Add tests for stupidly big numbers il y a 3 ans
tests Add tests for stupidly big numbers il y a 3 ans
.editorconfig Initial commit il y a 3 ans
.gitignore Implement tests for streams il y a 3 ans
.prettierrc Initial commit il y a 3 ans
LICENSE Initial commit il y a 3 ans
README.md Update README il y a 3 ans
package.json Add larger examples, actually test streams il y a 3 ans
tsconfig.json Start decoupling core code to locales il y a 3 ans
yarn.lock Add larger examples, actually test streams il y a 3 ans

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.