is-currency-code
Version:
Validates whether a given input is a valid ISO 4217 currency code
25 lines (19 loc) • 895 B
Markdown
# 💰 is-currency-code
[](https://www.npmjs.com/package/is-currency-code) [](https://travis-ci.org/hugomd/is-currency-code/builds) [](https://github.com/sindresorhus/xo)
> Validates whether a given input is a valid currency code, according to ISO 4217.
# Installation
```javascript
npm install is-currency-code
```
# Usage
```javascript
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 🔥