words-to-num
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Words To Number

Converts Any numeric words (even mixed with actual numbers) to numbers

example: one million 45 hundred 92 -> 1004592;

if the conversion fails the output is Nan

To Use:

Global:

WtoN.convert('one hundred and 42'); // => 142

CommonJS:

var WtoN = require('words-to-num');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    64
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    64
  • 0.1.0
    3
  • 0.0.2
    80
  • 0.0.1
    1

Package Sidebar

Install

npm i words-to-num

Weekly Downloads

78

Version

0.2.0

License

MIT

Unpacked Size

16.8 kB

Total Files

13

Last publish

Collaborators

  • howlowck