$ npm install --save midichlorian
var midichlorian = require('midichlorian');
midichlorian.people.get(1).then(function(p) {
//Prints 'Luke Skywalker'
console.log(p.name);
});
It also supports pagination when requesting bulk resources
midichlorian.people.get({page: 2}).then(function(p) {
/** Handle the new results page */
});
MIT © Fábio Oliveira