Navigation Menu

Skip to content

raitucarp/wtn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert Words to Number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published