Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Convert Words to Number
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tests
.gitattributes
.gitignore
Gruntfile.js
Readme.md
example.js
index.js
package.json

Readme.md

Introduction

WTN is an abbreviation of Words to Numbers. It will convert english words to number. It's useful for script that use words as a parameter

Install

npm install wtn

Example

var wtn = require('wtn');
console.log(wtn.convert('three thousand and one hundred')); // 3100
console.log(wtn.convert('twenty five')); // 25
console.log(wtn.convert('one hundred thousand and sixty five')); //100065

TODO

  • Support International language & its grammar
  • Increase performance of code
  • Create Unit Testing
Something went wrong with that request. Please try again.