currency-data-by-locale

retrieve currency data by locale

Usage no npm install needed!

<script type="module">
  import currencyDataByLocale from 'https://cdn.skypack.dev/currency-data-by-locale';
</script>

README

currency data by locale

Returns currency and seperator when language and region code are passed

import getLocationData from 'currency-data-by-locale';

const currency = getLocationData('en-US').currency;
const seperator = getLocationData('en-US').separator;