simple-currency-format
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "simple-currency-format", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Format currency when Intl is not available", | ||
@@ -13,3 +13,4 @@ "main": "dist/index.js", | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"index.d.ts" | ||
], | ||
@@ -16,0 +17,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
## Simplified Currency formatter | ||
## Simple Currency formatter | ||
@@ -21,12 +21,12 @@ #### A simple, lightweight, localized currency formatter. | ||
```javascript | ||
import { currecyFormat } from 'simple-currency-format'; | ||
console.log(currecyFormat(1000000, 'sv-SE', 'SEK')); | ||
import { currencyFormat } from 'simple-currency-format'; | ||
console.log(currencyFormat(1000000, 'sv-SE', 'SEK')); | ||
// 1 000 000 kr | ||
console.log(currecyFormat(1000000, 'en-GB', 'GBP')); | ||
console.log(currencyFormat(1000000, 'en-GB', 'GBP')); | ||
// £1,000,000 | ||
console.log(currecyFormat(1000000, 'mt-MT', 'EUR')); | ||
console.log(currencyFormat(1000000, 'mt-MT', 'EUR')); | ||
// €1,000,000 | ||
console.log(currecyFormat(1000000, 'de-DE', 'EUR')); | ||
console.log(currencyFormat(1000000, 'de-DE', 'EUR')); | ||
// 1.000.000 € | ||
console.log(currecyFormat(1000000, 'en-US', 'USD')); | ||
console.log(currencyFormat(1000000, 'en-US', 'USD')); | ||
// $1, 000, 000; | ||
@@ -33,0 +33,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129071
5
4023