1.0.3 • Published 9 years ago

dollars-to-cents v1.0.3

Weekly downloads
333
License
MIT
Repository
github
Last release
9 years ago

Dollars to Cents

version License Build Status Downloads Code Climate Coverage Status Dependencies

Convert USD Dollars (formatted string, non-formatted, numerical value) to USD Cents (numerical).

Install

  • NPM: npm install dollars-to-cents

Example

var dollarsToCents = require('dollars-to-cents')

console.log(dollarsToCents('$1,030.25')) // 103025

License

Licensed under The MIT License.