1.0.1 • Published 7 years ago
number-word v1.0.1
numbertoword
A Node.js module that converts a number to its word equivalent
Installation
npm install numtoword --save
yarn add numtoword
bower install numtoword --saveUsage
Javascript
var numtoword = require('numtoword');
var word = numtoword.getWordFromNumber(100);Output should be 'One Hundred'TypeScript
import { getWordFromNumber } from 'numtoword';
console.log(getWordFromNumber(100))Output should be 'One Hundred'AMD
define(function(require,exports,module){
  var numtoword = require('numtoword');
});Test
npm run test