1.0.1 • Published 8 years ago

random-country v1.0.1

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

random-country

Return a random country.

MIT License

build:? coverage:?

Install

$ npm install --save random-country 

Usage

var randomCountry = require('random-country');

// API
// - randomCountry([options]);

// options
// - full

By default, returns only the 2 letter ISO 3166-1 code for the country:

randomCountry();
// => 'LT'

Optionally specify that it ought to return a full country name:

randomCountry({ full: true });
// => 'Venezuela'

Related

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.