dollars-to-cents

1.0.3 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    179
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    179
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i dollars-to-cents

Weekly Downloads

171

Version

1.0.3

License

MIT

Last publish

Collaborators

  • nijikokun