Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 655 Bytes

Readme.md

File metadata and controls

42 lines (35 loc) · 655 Bytes

number-word

A Node.js module that converts a number to its word equivalent

Installation

npm install numtoword --save
yarn add numtoword
bower install numtoword --save

Usage

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