1.1.54 • Published 7 years ago
@flowio/reference-javascript v1.1.54
reference-javascript
The JavaScript lib for accessing the data provided by the reference api.
Provides static data for countries, currencies, languages and timezones.
Usage
Can be imported one of two ways:
import { countries } from '@flowio/reference-javascript';
or
import reference from '@flowio/reference-javascript';
// use reference.countries
For ES5:
var reference = require('@flowio/reference-javascript').default;
API
Countries
find(q)
q
- query - can be one of:- iso_3166_2 representation of the country, i.e, US
- iso_3166_3 representation of the country, i.e, USA
- the name of the country, i.e, United States
Currencies
find(q)
q
- query - can be one of:- iso_4217_3 representation of the currency, i.e, USD
- the name of the currency, i.e, US Dollar
Languages
find(q)
q
- query - can be one of:- iso_639_2 representation of the currency, i.e, en
- the name of the currency, i.e, English
Timezones
find(q)
q
- query - can be one of:- offset of the timezone, i.e,
-240
for Eastern Daylight Time - the name of the currency, i.e, America/New_York
- offset of the timezone, i.e,
1.1.54
7 years ago
1.1.53
7 years ago
1.1.52
7 years ago
1.1.51
7 years ago
1.1.50
7 years ago
1.1.49
7 years ago
1.1.48
7 years ago
1.1.44
8 years ago
1.1.43
8 years ago
1.1.42
8 years ago
1.1.40
8 years ago
1.1.38
8 years ago
1.1.37
8 years ago
1.1.36
8 years ago
1.1.35
8 years ago
1.1.33
8 years ago
1.1.45
8 years ago
1.1.30
8 years ago
1.1.28
8 years ago
1.1.26
8 years ago
1.1.18
8 years ago
1.1.16
8 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.2
8 years ago
1.1.0
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago