Skip to content
💰 Validates whether a given string is a currency, according to ISO 4217.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
currency-codes.json
index.js
package-lock.json
package.json
readme.md
test.js

readme.md

💰 is-currency

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

Usage

const isCurrency = require('is-currency');

isCurrency('usd'); // true
isCurrency('fake-currency'); // false

Contributing

  • git clone git@github.com:hugomd/is-currency.git
  • npm install
  • Make your changes
  • Open a pull request and ask for review ✌️
  • Optional: use emoji in your commits 🔥

Related Repositories

You can’t perform that action at this time.