/world-factbook

Interact with a json version of the world factbook

Primary LanguageHTMLMIT LicenseMIT

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
  • Generating Templates
$ THEME=YOUR_CHOSEN_THEME npm run gen-templates

Author

Jonathan Bitgood

License

MIT