Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-currency-format

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-currency-format - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

index.d.ts

5

package.json
{
"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": {

14

readme.md

@@ -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 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc