Package Exports
- rupee-currency-formatter
- rupee-currency-formatter/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rupee-currency-formatter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Rupee Currency Formatter
This package transforms given string or number into into Indian Currency Format (INR) with default rupee symbol (₹) or any custom symbol and with specified decimal places.
Installation
npm install rupee-currency-formatter
Usage
import rupeeCurrencyFormatter from 'rupee-currency-formatter';
or
const rupeeCurrencyFormatter = require('rupee-currency-formatter');
Examples
console.log(rupeeCurrencyFormatter(9876.54, 'INR', 3)); // INR 9,876.540
console.log(rupeeCurrencyFormatter(9876543.21)); // ₹ 9,876,543.21