freebase-as-promised

0.0.2 • Public • Published

Freebase-as-Promised

A bluebird.js wrapper around Freebase. It doesn't really add any functionality, just lets you use lovely Bluebird Promises to query Freebase.

Usage

All of the original Freebase methods take the same signature, which is handy:

freebase.<method>(searchTerm, options, callback);

This Promisified version is used like so:

freebase.<method>(searchTerm[, options]); // returns Promise

This means you can use Bluebird's wonderful API on all the results:

var freebase = require('freebase-as-promised');
freebase.search('Thom Yorke').map(console.log);

Readme

Keywords

none

Package Sidebar

Install

npm i freebase-as-promised

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jimmed