Skip to content

A Typescript project that gets a number and returns its string equivalent

License

Notifications You must be signed in to change notification settings

KobbyMmo/number-word

Repository files navigation

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

About

A Typescript project that gets a number and returns its string equivalent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published