is-currency-code

1.2.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i is-currency-code

    Weekly Downloads

    2,090

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • hugomd