currency-codes-polish
JSON files and ES Modules containing ISO 4217 currency codes with Polish and English names. All data is scraped from Wikipedia. Pseudo-currencies (precious metals, bond market units etc.) are omitted.
Usage
npm install currency-codes-polish
const currencyCodes = require('currency-codes-polish');
currencyCodes.find(({name_en}) => name_en === 'Pound sterling') =>
{
alpha: 'GBP',
numeric: '826',
name_en: 'Pound sterling',
name_pl: 'Funt szterling'
}
const currencyCodesAlpha = require('currency-codes-polish/alpha');
currencyCodesAlpha.find(({code}) => code === 'CZK') =>
{
name_pl: 'Korona czeska',
name_en: 'Czech koruna',
code: 'CZK'
}
const currencyCodesNum = require('currency-codes-polish/numeric');
currencyCodesNum.find(({code}) => code === '756') =>
{
name_pl: 'Frank szwajcarski',
name_en: 'Swiss franc',
code: '756'
}
This package also includes ESM formatted files available as:
import currencyCodes from 'currency-codes-polish/esm';
import currencyCodesAlpha from 'currency-codes-polish/esm/alpha';
import currencyCodesNum from 'currency-codes-polish/esm/numeric';
Scrape it yourself
git clone https://github.com/szydlovski/currency-codes-polish
npm install
npm run scrape