This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

tomahawq

0.4.2 • Public • Published

tomahawq

Implementation of the JS plugins API from Tomahawk as a library for NodeJS and io.js.

Usage

var Tomahawk = require('tomahawq');

Tomahawk.loadAxe(pathtoaxe).then(function(axe) {
  var instance = axe.getInstance();
  return instance.search({query: "Protohype"});
}).then(function(results) {
  console.log(results);
});

instance here is a special AxeInstance object that proxies some methods to the actual plugin instance. instance.resolve, .search, .lookupUrl and .getStreamUrl return Q promises, while .canParseUrl is just a proxy.

Further usage docs coming soon.

Readme

Keywords

Package Sidebar

Install

npm i tomahawq

Weekly Downloads

0

Version

0.4.2

License

MIT

Last publish

Collaborators

  • notpushkin