validate-currency-code

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

Usage no npm install needed!

<script type="module">
  import validateCurrencyCode from 'https://cdn.skypack.dev/validate-currency-code';
</script>

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
}