Package Exports
- indian-currency-formatter
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 (indian-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
indian-currency-formatter
This package transforms the amount into Indian Currency Format (INR)
Installation
npm install indian-currency-formatterUsage
import formatAmount from 'indian-currency-formatter';
or
const formatAmount = require('indian-currency-formatter');Usage
console.log(formatAmount(1500.20)); // 1,500.20
console.log(formatAmount(5264210)); // 52,64,210