Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
currency-format
Advanced tools
JSON with information about currencies: codes (ISO 4217), the names, grapheme (symbols) and formatting.
JSON with information about currencies: codes (ISO 4217), the names, grapheme (symbols), fraction and formatting.
Copy the JSON file into your project or use npm/bower package manager:
npm install currency-format
or bower install currency-format
The structure of the JSON file:
{
'AMD': { // ISO 4217 currency code.
'name': 'Armenian Dram', // Currency name.
'fractionSize': 2, // Fraction size, a number of decimal places.
'symbol': { // Currency symbol information.
'grapheme': 'դր.', // Currency symbol.
'template': '1 $', // Template showing where the currency symbol should be located
// (before or after amount).
'rtl': false // Writing direction.
},
'uniqSymbol': { // Alternative currency symbol. We recommend to use it when you want
// to exclude a repetition of symbols in different currencies.
'grapheme': 'դր.', // Alternative currency symbol.
'template': '1 $', // Template showing where the alternative currency symbol should be
// located (before or after amount).
'rtl': false // Writing direction.
}
},
...
}
symbol/uniqSymbol field is null
, when the currency has no symbol/alternative symbol.
The list of currency codes was taken from https://en.wikipedia.org/wiki/ISO_4217.
The MIT License.
See LICENSE
FAQs
JSON with information about currencies: codes (ISO 4217), the names, grapheme (symbols) and formatting.
The npm package currency-format receives a total of 3,814 weekly downloads. As such, currency-format popularity was classified as popular.
We found that currency-format demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.