Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
currency-list
Advanced tools
Utility package for localized currency list
Package available via:
npm install currency-list
Module exports CurrencyList
and functions get(currency_code, locale = 'en_us')
and getAll(locale?)
where currency_code
is ISO 4217 currency code and locale
is ISO 3166‑1
import CurrencyList from 'currency-list'
console.log(CurrencyList.getAll()) // Prints all currency lists for all locales
console.log(CurrencyList.getAll('en_US')) // Prints all currency lists for en_US locale
console.log(CurrencyList.get("EUR"))
/* Prints {
name: 'Euro',
symbol_native: '€',
symbol: '€',
code: 'EUR',
name_plural: 'euros',
rounding: 0,
decimal_digits: 2
} as in default locale 'en_US'
*/
console.log(CurrencyList.get("UAH", 'zh'))
/* Prints {
name: '乌克兰格里夫纳',
symbol_native: '₴',
symbol: '₴',
code: 'UAH',
name_plural: 'Ukrainian hryvnias',
rounding: 0,
decimal_digits: 2
} as in 'zh' locale */
All contributions are welcome as pull request or issues in github repository. Most contributions appreciated for name_plura attribute for each locale as it requires knowladge of the language.
Prepared by Webplan.pro from different public sources. Feel free to use it as you need in your apps or send updates into this public repository. It's under MIT license.
FAQs
Localized currency list
We found that currency-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.