UNPKG

@ww-samuel/to-words

Version:

Converts numbers (including decimal points) into words & currency.

202 lines (92 loc) 7.62 kB
# Changelog All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. ### [3.6.1](https://github.com/mastermunj/to-words/compare/v3.6.0...v3.6.1) (2023-06-27) ### Bug Fixes * Added PH entry ([e26d507](https://github.com/mastermunj/to-words/commit/e26d507cb9ef5f43dfc00d0b2ce094f0bad209b7)) * **impl:** include file ([004fe95](https://github.com/mastermunj/to-words/commit/004fe95ffd9ea0e34a26f92b8a21124541f02cdf)) ## [3.6.0](https://github.com/mastermunj/to-words/compare/v3.5.1...v3.6.0) (2023-06-19) ### Features * add support for only text to be in front of number words ([e96ca2f](https://github.com/mastermunj/to-words/commit/e96ca2fcd80f2366723b7ad43f8ecc8c046355c9)) * **locale:** add estonian (ee-EE) language support ([df44a3f](https://github.com/mastermunj/to-words/commit/df44a3f4d456edd83363393524a8a4e01e21bfef)) ### [3.5.1](https://github.com/mastermunj/to-words/compare/v3.5.0...v3.5.1) (2023-04-24) ## [3.5.0](https://github.com/mastermunj/to-words/compare/v3.4.0...v3.5.0) (2023-02-27) ### Features * **locale:** add support for en-NP locale ([c66759a](https://github.com/mastermunj/to-words/commit/c66759a0ffdc8411cdaec5c8dcfcf382cb90fa27)) ## [3.4.0](https://github.com/mastermunj/to-words/compare/v3.3.2...v3.4.0) (2023-01-17) ### Features * **locale:** add support to pt-BR locale ([b4061ef](https://github.com/mastermunj/to-words/commit/b4061ef0f55091e2fcea2834e893f1c14c860ce4)) ### [3.3.2](https://github.com/mastermunj/to-words/compare/v3.3.1...v3.3.2) (2022-12-16) ### [3.3.1](https://github.com/mastermunj/to-words/compare/v3.3.0...v3.3.1) (2022-11-10) ### Bug Fixes * add dist ([ca7e4c9](https://github.com/mastermunj/to-words/commit/ca7e4c915cb6b393e50b941f6fd3a5cfd1186463)) ## [3.3.0](https://github.com/mastermunj/to-words/compare/v3.2.0...v3.3.0) (2022-08-02) ### Features * allow overriding currency details per conversion ([380831e](https://github.com/mastermunj/to-words/commit/380831e7e8e07e7537db0351fba1906e328e2ee8)) ## [3.2.0](https://github.com/mastermunj/to-words/compare/v3.1.1...v3.2.0) (2022-04-16) ### Features * **language:** added support for dutch nl-SR language and currency ([#805](https://github.com/mastermunj/to-words/issues/805)) ([4ac84c3](https://github.com/mastermunj/to-words/commit/4ac84c3c53093838b8787c0f3d1749c127204d9f)) ### [3.1.1](https://github.com/mastermunj/to-words/compare/v3.1.0...v3.1.1) (2022-03-28) ### Bug Fixes * add includes of ignore one for words ([a289892](https://github.com/mastermunj/to-words/commit/a2898923e96a7dfbbde8518d6d794014bb81ba88)) * generate build ([6d08e8a](https://github.com/mastermunj/to-words/commit/6d08e8aaee3e55cbbab211894a87722254a7fe50)) ## [3.1.0](https://github.com/mastermunj/to-words/compare/v3.0.3...v3.1.0) (2022-02-09) ### Features * **GB:** added tests for GB support ([b9f488f](https://github.com/mastermunj/to-words/commit/b9f488f6fd787666c3f164db834763d76cdbca09)) ### [3.0.3](https://github.com/mastermunj/to-words/compare/v3.0.2...v3.0.3) (2022-01-06) ### Bug Fixes * remove deepsource config ([0ae7a59](https://github.com/mastermunj/to-words/commit/0ae7a59cd2058225eae44dabb4031737ba47de79)) ### [3.0.2](https://github.com/mastermunj/to-words/compare/v3.0.1...v3.0.2) (2021-11-24) ### [3.0.1](https://github.com/mastermunj/to-words/compare/v3.0.0...v3.0.1) (2021-10-23) ## [3.0.0](https://github.com/mastermunj/to-words/compare/v2.5.0...v3.0.0) (2021-09-14) ### Features * refactor and add new languages ([#526](https://github.com/mastermunj/to-words/issues/526)) ([0dc9c10](https://github.com/mastermunj/to-words/commit/0dc9c10d457982ea190fb127bb698f5307b23ffe)) ## [3.0.0-alpha.0](https://github.com/mastermunj/to-words/compare/v2.5.0...v3.0.0-alpha.0) (2021-09-04) ### Features * refactor and new languages ([ec68e6c](https://github.com/mastermunj/to-words/commit/ec68e6c35a1d9d2ad68a6dd741cb71682681ed79)) ### Bug Fixes * remove default class export to keep import syntax same ([bc15df6](https://github.com/mastermunj/to-words/commit/bc15df67836750a010531281f39ff21d5e79773c)) * resolve rebase issue ([2d175f2](https://github.com/mastermunj/to-words/commit/2d175f2d6f8a9f088ed1679817ee29298164bed1)) ## [2.5.0](https://github.com/mastermunj/to-words/compare/v2.4.0...v2.5.0) (2021-08-24) ## [2.4.0](https://github.com/mastermunj/to-words/compare/v2.3.2...v2.4.0) (2021-08-06) ### Features * support added for french (fr-FR) ([#512](https://github.com/mastermunj/to-words/issues/512)) ([ae19f85](https://github.com/mastermunj/to-words/commit/ae19f850f6a37f36cd12267ee2177adc8510e098)) ### [2.3.2](https://github.com/mastermunj/to-words/compare/v2.3.1...v2.3.2) (2021-05-24) ### [2.3.1](https://github.com/mastermunj/to-words/compare/v2.3.0...v2.3.1) (2020-12-08) ### Bug Fixes * change MMK to follow US numeral systems ([#265](https://github.com/mastermunj/to-words/issues/265)) ([a37d6f6](https://github.com/mastermunj/to-words/commit/a37d6f6f6012d6abb1627d6fdacb34f5dd62ecc8)) ## [2.3.0](https://github.com/mastermunj/to-words/compare/v2.2.5...v2.3.0) (2020-11-20) ### Features * add support for en-MM ([b48eade](https://github.com/mastermunj/to-words/commit/b48eade05b0b0272443ecf89acf6004c0d3f18aa)) ### [2.2.5](https://github.com/mastermunj/to-words/compare/v2.2.4...v2.2.5) (2020-11-08) ### [2.2.4](https://github.com/mastermunj/to-words/compare/v2.2.3...v2.2.4) (2020-11-08) ### [2.2.3](https://github.com/mastermunj/to-words/compare/v2.2.2...v2.2.3) (2020-09-25) ### [2.2.2](https://github.com/mastermunj/to-words/compare/v2.2.1...v2.2.2) (2020-09-22) ### [2.2.1](https://github.com/mastermunj/to-words/compare/v2.2.0...v2.2.1) (2020-06-20) ### Bug Fixes * build & add code for en-MU ([6e01b2b](https://github.com/mastermunj/to-words/commit/6e01b2b0b1bbb04ff94e9f82daad723f03628100)) ## [2.2.0](https://github.com/mastermunj/to-words/compare/v2.1.1...v2.2.0) (2020-06-20) ### Features * add Mauritius English locale ([cead7b4](https://github.com/mastermunj/to-words/commit/cead7b42b106c06404f8c7ef21f28262f353aa66)) ### [2.1.1](https://github.com/mastermunj/to-words/compare/v2.1.0...v2.1.1) (2020-05-01) ### Bug Fixes * add build files ([3c7b7e8](https://github.com/mastermunj/to-words/commit/3c7b7e8f0fe7a3f08dc853a93f7ee5210d1b1f61)) ## [2.1.0](https://github.com/mastermunj/to-words/compare/v2.0.3...v2.1.0) (2020-05-01) ### Features * improve .gitignore ([2e406d9](https://github.com/mastermunj/to-words/commit/2e406d90ced857b9c73cbff98c810172c26e9dd4)) ### [2.0.3](https://github.com/mastermunj/to-words/compare/v2.0.2...v2.0.3) (2020-04-25) ### [2.0.2](https://github.com/mastermunj/to-words/compare/v2.0.1...v2.0.2) (2020-04-24) ### Bug Fixes * lint rules ([74bfb9c](https://github.com/mastermunj/to-words/commit/74bfb9c8b91eda02dbcde9596b61d9de67737355)) ### [2.0.1](https://github.com/mastermunj/to-words/compare/v2.0.0...v2.0.1) (2020-04-23) ## 2.0.0 (2020-04-23) ### ⚠ BREAKING CHANGES * Rewrote the core into Typescript. feat: added options ignoreDecimal, ignoreZeroCurrency feat: added provision for i18n, currently supports en-IN (default) and en-US fix: wrong conversion of fractional unit beginning with zero docs: updated README test: added unit tests with jest ### Bug Fixes * fixed isValidNumber ([3224609](https://github.com/mastermunj/to-words/commit/3224609c6a09fa0ec66df0abe5daf43754389187)) * Rewrite in TypeScript with enahcements ([9617f26](https://github.com/mastermunj/to-words/commit/9617f261b8ba48bcedd3f72391776feebe7800df)) ---