Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

currency-codes-polish

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency-codes-polish

ISO 4217 currency codes with Polish names

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by233.33%
Maintainers
1
Weekly downloads
 
Created
Source

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'
}

// both alpha and numeric codes are included as separate files as well
// in these files, the target code is set as the `code` property

// alpha

const currencyCodesAlpha = require('currency-codes-polish/alpha');

currencyCodesAlpha.find(({code}) => code === 'CZK') =>

{
  name_pl: 'Korona czeska',
  name_en: 'Czech koruna',
  code: 'CZK'
}

// numeric

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

Keywords

FAQs

Package last updated on 28 Dec 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc