Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

unicode-countries

phristov2kMIT0.1.11

Creates a json file with countries.

unicode, counties, country, generator, unicode countries

readme

Unicode Countries Dependency Status Codacy Badge Build Status

Creates a json file with countries, subdivisions and postal codes based on Unicode database.

CLDR v31.0.1 - Unicode Common Locale Data Repository. To update the database to the latest version go to Unicode.

Check the version of Node.js you have by running node --version. It should be greater than v4.0.0.

To install:

$ npm install -g unicode-countries

Usage:

$ unicode-countries -L en,de,es,bg,hu,ru -O result.json

Run unicode-countries -h for a quick help on usage and arguments:

$ unicode-countries -h
Usage: unicode-countries [OPTIONS]
       unicode-countries -L en,de
       unicode-countries --languages en

Options:
  -L, --languages          List of languages
  -O, --output             Output file

Commands:
  -h, --help               Show this help text
  -v, --verbose            Explain what is being done