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.

Package Sidebar

Install

npm i dollars-to-cents

Weekly Downloads

179

Version

1.0.3

License

MIT

Last publish

Collaborators

  • nijikokun