
Security News
Next.js Patches Critical Middleware Vulnerability (CVE-2025-29927)
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
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
The npm package currency-list receives a total of 5,152 weekly downloads. As such, currency-list popularity was classified as popular.
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
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.