world-countries-capital

2.2.0 • Public • Published

world-countries-capital

travis build codecov coverage version downloads MIT License semantic-release

World countries (and capital) library. Find very basic geographical, cultural, etc. information about all countries of the world.

world-countries-capital

Installation

This package is distributed via npm:

npm install world-countries-capital

Usage

var names = require('world-countries-capital');
var allNames = names.all;
var randomName = names.random();
var threeRandomNames = names.random(3);

Project Setup

This project assumes you have NodeJS v6 or greater installed. You should also have npm v3 or greater installed as well (this comes packaged with Node 6). You'll also need a recent version of git installed as well.

Validate branch:

npm run validate

Build and run in production mode:

npm run build

Commit changes in staging area:

git add .
npm run commit

Other

This library was developed by me as part of an egghead.io series called "How to Write a JavaScript Library."

If you get any failures at this point something is wrong and needs to be fixed. Remember, Google and StackOverflow are your friends.

You might find it helpful to see a list of the available branches. Run: git branch for that.

Readme

Keywords

Package Sidebar

Install

npm i world-countries-capital

Weekly Downloads

0

Version

2.2.0

License

MIT

Last publish

Collaborators

  • mbao01