Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

validate-currency-code

Boelensman112.2kMIT0.1.2TypeScript support: included

Very simple lib to check if something is a iso 4217 currency code

iso, 4217, iso 4217, currency, currencies

readme

validate-currency-code

Very simple lib to check if something is a iso 4217 currency code

Usage

var validateCurrencyCode = require('validate-currency-code');
if (validateCurrencyCode('EUR')) {
  // code that should run when the currencycode is valid
}