New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

is-currency-code

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-currency-code

Validates whether a given input is a valid ISO 4217 currency code


Version published
Weekly downloads
1.8K
decreased by-19.5%
Maintainers
1
Weekly downloads
 
Created

💰 is-currency-code

npm Build Status XO code style

Validates whether a given input is a valid currency code, according to ISO 4217.

Installation

npm install is-currency-code

Usage

const isCurrencyCode = require('is-currency-code');

isCurrencyCode('usd'); // true
isCurrencyCode('fake-currency'); // false

Contributing

  • git clone git@github.com:hugomd/is-currency-code.git
  • npm install
  • Make your changes
  • Open a pull request and ask for review ✌️
  • Optional: use emoji in your commits 🔥

FAQs

Package last updated on 19 Jul 2017

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