Skip to content

A tiny javascript library to count in natural language e.g. Zero, One, Two, Three .. up to 999,999,999,999,999.

License

Notifications You must be signed in to change notification settings

charneykaye/count

Repository files navigation

NPM version NPM downloads MIT License Build Status

A tiny javascript library to count in natural language e.g. Zero, One, Two, Three.. up to 999,999,999,999,999.

JavaScript count in natural language e.g. Zero, One, Two, Three, and beyond.

Available via NPM:

npm install count

Open Source: https://github.com/charneykaye/count

Count.js is freely distributable under the terms of the MIT license.

Documentation

Basic Usage

Here's all this does so far:

// Factory's name will be "FactoryFive"
_n = 'Factory' + count(5).camel();

// Unit tests
test.equal(count(764).camel(), '"SevenHundredSixtyFour"');    
test.equal(count(999999999999999).camel(), 'NineHundredNinetyNineTrillionNineHundredNinetyNineBillionNineHundredNinetyNineMillionNineHundredNinetyNineThousandNineHundredNinetyNine');

License

Count.js is freely distributable under the terms of the MIT license.

About

A tiny javascript library to count in natural language e.g. Zero, One, Two, Three .. up to 999,999,999,999,999.

Resources

License

Stars

Watchers

Forks

Packages

No packages published