Get the name of a number, even if it's stupidly big.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly a požadavky na natažení.
TheoryOfNekomata b24d26de25 Add tests for stupidly big numbers před 3 roky
src Add tests for stupidly big numbers před 3 roky
tests Add tests for stupidly big numbers před 3 roky
.editorconfig Initial commit před 3 roky
.gitignore Implement tests for streams před 3 roky
.prettierrc Initial commit před 3 roky
LICENSE Initial commit před 3 roky
README.md Update README před 3 roky
package.json Add larger examples, actually test streams před 3 roky
tsconfig.json Start decoupling core code to locales před 3 roky
yarn.lock Add larger examples, actually test streams před 3 roky

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.