country-currency-timezone
v1.0.4
Published
Install with npm:
Downloads
1
Readme
country-currency-timezone
Usage
NodeJS
Install with npm:
npm install --save country-currency-timezone
API
getCountries
Returns a countries.
Example
const getCountries = require('country-currency-timezone/countries')
const countyList = getCountries();
/*
Prints:
[
{
CountryName: "INDIA",
A2: "IN",
A3: "IND",
N3: "356"
}
]
*/
getCurrencies
Returns a currencies.
Example
const getCurrencies = require('country-currency-timezone/currencies')
const currencyList = getCurrencies;
/*
Prints:
[
{
Currency: "Indian Rupee",
Code: "INR",
Numeric: "356"
}
]
*/
getTimeZones
Returns a time zones.
Example
const getTimeZones = require('country-currency-timezone/time-zone')
const timeZoneList = getTimeZones();
/*
Prints:
[
{
code: "0",
description: "GMT"
}
]
*/