1.1.0 • Published 6 years ago

world-factbook v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

world-factbook.js

This package allows the easy parsing of the public domain world factbook information from the CIA either (coming soon) via API or an offline set of JSON files.

Installation

Install package

$ npm install --save world-factbook

Usage

Append the complete factbook collection to an element

var worldFactbook = new WorldFactbook();
worldFactbook.renderHTML(false, profile.dataset.id).then(function(rendered) {
    $('#country-profile').append(rendered);
});

Development

  • Cloning the repo
$ git clone https://github.com/confirmed/world-factbook.git
  • Installing dependencies
$ npm install
  • Running scripts
ActionUsage
Starting development modenpm start
Linting codenpm run lint
Running unit testsnpm run jest
Running code coveragenpm run coverage
Running lint + testsnpm test
Sending coverage results to Coveralls.ionpm run coveralls

Author

Jonathan Bitgood

License

MIT