0.0.2 • Published 8 years ago
n2vw v0.0.2
N2VW
An universal library for converting number to Vietnamese words.
Installation
// Using npm:
$ npm install n2vw
// Using Yarn:
$ yarn add n2vw
// Using Bower:
$ bower install n2vwNode
var n2vw = require('n2vw');<script> tag
<script src="bower_components/n2vw/lib/n2vw.min.js"></script>Usage
var converter = new n2vw();
converter.getFullText(1234);
// => 'một nghìn, hai trăm ba mươi bốn'
converter.getFullText('99');
// => 'chín mươi chín'CLI
npm run build- produces production version of your library under thelibfoldernpm run dev- produces development version of your library and runs a watchernpm run test- well ... it runs the tests :)npm run test:watch- same as above but in a watch mode