Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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.

Install

npm i dollars-to-cents

DownloadsWeekly Downloads

178

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar