Socket
Socket
Sign inDemoInstall

is-currency-code

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

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
3.6K
increased by17.65%
Maintainers
1
Install size
4.25 kB
Created
Weekly downloads
 

Readme

Source

💰 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 🔥

Keywords

FAQs

Last updated on 19 Jul 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc