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

Package detail

countrily-data

cozzbie14ISC1.0.1

Compiled data for the countrily node lib

readme

countrily-data

Inspired by the work of the authors of countryjs. This is a single file compilation of all the countries data.

Table of Contents

Install

npm install countrily-data
cd node_modules/countrily-data
npm run build

The Build command builds/rebuilds the index.js file for easy compilation for non nodejs environments.

Usage

To access countries data just var data = require('countrily-data')

API

Test

  1. Make the changes you desire
  2. Ensure all changes have a new test in the test/ folder, and run:

    npm test

Disclaimer

This is being maintained in the contributor's free time, and as such, may contain minor errors in regards to some countries. Most of the information included in this library is what is listed on Wikipedia. If there is an error, please let me know and I will do my best to correct it.

License (ISC)

Copyright (c) 2017, Timi Aiyemo cozzbie@gmail.com

Please see licence file.