Get the name of a number, even if it's stupidly big.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。
TheoryOfNekomata b24d26de25 Add tests for stupidly big numbers 3年前
src Add tests for stupidly big numbers 3年前
tests Add tests for stupidly big numbers 3年前
.editorconfig Initial commit 3年前
.gitignore Implement tests for streams 3年前
.prettierrc Initial commit 3年前
LICENSE Initial commit 3年前
README.md Update README 3年前
package.json Add larger examples, actually test streams 3年前
tsconfig.json Start decoupling core code to locales 3年前
yarn.lock Add larger examples, actually test streams 3年前

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.