Get the name of a number, even if it's stupidly big.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Dieses Repo ist archiviert. Du kannst Dateien sehen und es klonen, kannst aber nicht pushen oder Issues/Pull-Requests öffnen.
TheoryOfNekomata b24d26de25 Add tests for stupidly big numbers vor 3 Jahren
src Add tests for stupidly big numbers vor 3 Jahren
tests Add tests for stupidly big numbers vor 3 Jahren
.editorconfig Initial commit vor 3 Jahren
.gitignore Implement tests for streams vor 3 Jahren
.prettierrc Initial commit vor 3 Jahren
LICENSE Initial commit vor 3 Jahren
README.md Update README vor 3 Jahren
package.json Add larger examples, actually test streams vor 3 Jahren
tsconfig.json Start decoupling core code to locales vor 3 Jahren
yarn.lock Add larger examples, actually test streams vor 3 Jahren

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.