Skip to content

Function to get the name and symbol of a given currency

License

Notifications You must be signed in to change notification settings

Ucis-cmd/currency-info-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Function to get the name and symbol of a given currency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published