gamefinder
v1.6.5
Published
Finds data on Video Games from various sources
Downloads
76
Readme
Gamefinder
Finds game data using Freebase/Wikipedia
Usage is pretty straightforward:
#!javascript
var Search = require('gamefinder').Gamefinder
var game = new Search('minecraft');
game.title()
.description(require('gamefinder').providers.Wikipedia, { paragraphs: 1 })
.developer();
game.on('title', function (title){
/* Title is game's title */
})
game.on('property', function (key, value){
/* Key (e.g. title) value (e.g. Minecraft) */
})
// Get all data
game.all(require('gamefinder').providers.FreebaseTorify/*Through Tor*/);
// When all data is retrieved
game.on('all', function (all_game_data){
})
// make sure to set this or exceptions WILL be thrown
game.on('error', function (error){
})