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.
Install package
$ npm install --save world-factbook
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);
});
- 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