1.2.0 • Published 7 years ago

is-currency-code v1.2.0

Weekly downloads
648
License
MIT
Repository
github
Last release
7 years ago

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