Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

count

0.1.4 • Public • Published

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.

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');

Changelog

Contributing

License

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

install

npm i count

Downloadsweekly downloads

20

version

0.1.4

license

none

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability