1.0.1 • Published 8 years ago
random-country v1.0.1
random-country
Return a random country.
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
- random-lang - Return a random language name.
- random-altitude - Generate a random altitude, in meters.
- random-depth - Generate a random depth, in meters. Depths are always negative.
- random-coordinates - Generate a random coordinates, which are latitude and longitude, comma separated.
- random-latitude - Generate a random latitude.
- random-longitude - Generate a random longitude.
- random-geohash - Generate a random geohash.
- random-geojson - Generate a random geojson.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.