Skip to content

Display cents as a two-digit number for currency. This module is stupidly small.

License

Notifications You must be signed in to change notification settings

ajoslin/display-cents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

display-cents Build Status

Display cents as a two-digit number for currency. Stupid small.

Install

$ npm install --save display-cents

Usage

var displayCents = require('display-cents')

displayCents(100) // => '1.00'

API

displayCents(cents) -> formattedCents

License

MIT © Andrew Joslin

About

Display cents as a two-digit number for currency. This module is stupidly small.

Resources

License

Stars

Watchers

Forks

Packages