Skip to content

node package that helps convert cents into dollars specially when working in APIs

License

Notifications You must be signed in to change notification settings

TaqsBlaze/dollariz-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

dollariz

node package that helps convert cents into dollars specially when working in APIs

How to install

npm install dollariz@latest

How to use

const dollar = require("dollariz");

const cents = 15080;
const dollars = dollar.convertToDollars(cents, decimal=2);

console.log(dollars);
:150.80

by defailt dollariz uses 2 decimals so you dont have to specify but if you need to use a different decimal value then you can specify

About

node package that helps convert cents into dollars specially when working in APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published