0.0.4 • Published 8 years ago

crockpot v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

crockpot Build Status

Converts multiple number formats using decimal numbers as a proxy.

Install

$ npm install --save crockpot

Usage

The following types of numbers can be translated to one of the types below to any other:

  • decimal
  • roman numeral
  • english

TODO:

  • binary
var convert = require('crockpot')

crockpot.roman.toEnglish('IV')
// 'four'

crockpot.decimal.toEnglish(1066)
// 'one thousand sixty-six'

Development

To run tests follow the following instructions:

$ npm install -g gulp
$ npm install -g mocha

To run tests on file changes:

$ gulp test

Alternatively you can run individual tests:

$ mocha specs/**

License

MIT