is-currency-code
v1.2.0
Published
Validates whether a given input is a valid ISO 4217 currency code
Downloads
8,794
Readme
💰 is-currency-code
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 [email protected]:hugomd/is-currency-code.git
npm install
- Make your changes
- Open a pull request and ask for review ✌️
- Optional: use emoji in your commits 🔥