JSPM

is-currency-code

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2069
  • Score
    100M100P100Q112591F
  • License MIT

Validates whether a given input is a valid ISO 4217 currency code

Package Exports

  • is-currency-code

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-currency-code) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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