iso-3166-1

Lookup information with ISO 3166-1 alpha-2, ISO 3166-1 alpha-3 and ISO 3166-1 numeric

iso-3166-1 downloads iso-3166-1 version iso-3166-1 license

iso-3166-1類似パッケージ:

npmのダウンロードトレンド

3 年
🌟 iso-3166-1のREADME.mdにリアルタイム使用チャートを表示するには、以下のコードをコピーしてください。
## Usage Trend
[![Usage Trend of iso-3166-1](https://npm-compare.com/img/npm-trend/THREE_YEARS/iso-3166-1.png)](https://npm-compare.com/iso-3166-1#timeRange=THREE_YEARS)

Cumulative GitHub Star Trend

🌟 iso-3166-1のREADME.mdにGitHub Starsトレンドチャートを表示するには、以下のコードをコピーしてください。
## GitHub Stars Trend
[![GitHub Stars Trend of iso-3166-1](https://npm-compare.com/img/github-trend/iso-3166-1.png)](https://npm-compare.com/iso-3166-1)

統計詳細

パッケージ
ダウンロード数
Stars
サイズ
Issues
公開日時
ライセンス
iso-3166-1306,7505938.1 kB4-MIT

iso-3166-1 のREADME

iso-3166-1

Lookup information with ISO 3166-1 alpha-2, ISO 3166-1 alpha-3 and ISO 3166-1 numeric

Build Status npm version npm version npm version

Installation

npm install iso-3166-1 --save

Usage

Get country by ISO 3166-1 Alpha-2

const iso = require('iso-3166-1');

console.log(iso.whereAlpha2('no'));
/** Returns:
  {
    country: 'Norway',
    alpha2: 'NO',
    alpha3: 'NOR',
    numeric: '578'
  }
*/

Get country by ISO 3166-1 Alpha-3

const iso = require('iso-3166-1');

console.log(iso.whereAlpha3('nor'));
/** Returns:
  {
    country: 'Norway',
    alpha2: 'NO',
    alpha3: 'NOR',
    numeric: '578'
  }
*/

Get country by ISO 3166-1 Numeric

const iso = require('iso-3166-1');

console.log(iso.whereNumeric(578));
/** Returns:
  {
    country: 'Norway',
    alpha2: 'NO',
    alpha3: 'NOR',
    numeric: '578'
  }
*/

Get country by country name

const iso = require('iso-3166-1');

console.log(iso.whereCountry('NORWAY'));
/** Returns:
  {
    country: 'Norway',
    alpha2: 'NO',
    alpha3: 'NOR',
    numeric: '578'
  }
*/

Get all countries

const iso = require('iso-3166-1');

console.log(iso.all());
/** Returns:
  [
    {
      country: 'Norway',
      alpha2: 'NO',
      alpha3: 'NOR',
      numeric: '578'
    }
  ]
*/

License

MIT © Daniel Eckermann