1.1.54 • Published 8 years ago

@flowio/reference-javascript v1.1.54

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

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
1.1.54

8 years ago

1.1.53

8 years ago

1.1.52

8 years ago

1.1.51

8 years ago

1.1.50

8 years ago

1.1.49

8 years ago

1.1.48

9 years ago

1.1.44

9 years ago

1.1.43

9 years ago

1.1.42

9 years ago

1.1.40

9 years ago

1.1.38

9 years ago

1.1.37

9 years ago

1.1.36

9 years ago

1.1.35

9 years ago

1.1.33

9 years ago

1.1.45

9 years ago

1.1.30

9 years ago

1.1.28

9 years ago

1.1.26

9 years ago

1.1.18

9 years ago

1.1.16

9 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.2

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago