
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
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
1.0.13 - 2020-01-29
FAQs
JSON with information about currencies: codes (ISO 4217), the names, grapheme (symbols) and formatting.
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.