1.0.4 • Published 2 years ago

currency-info-map v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Currency-info-map

Currency-info-map is a function to get the name and symbol of a currency.

Installation

npm install currency-info-map

Usage

Get info about a currency

import getCurrencyInfo from "currency-info-map";

getCurrencyInfo("USD");
//Output: { name: "United States Dollar", symbol: "$" }

Get full currency map

import currencyInfoMap from "currency-info-map/map.js";

console.log(currencyInfoMap);
/*
Output: 
{
  AED: { name: "United Arab Emirates Dirham", symbol: "د.إ" },
  AFN: { name: "Afghan Afghani", symbol: "؋" },
  ALL: { name: "Albanian Lek", symbol: "L" },
  AMD: { name: "Armenian Dram", symbol: "֏" },
  ...
}
*/

License

MIT Licensed. Copyright (c) Ugis Jansons 2023.

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago