Skip to content
This repository was archived by the owner on Jun 7, 2018. It is now read-only.
/ tomahawq Public archive
forked from xhochy/node-tomahawkjs

Implementation of the JS plugins API from Tomahawk for NodeJS

License

Notifications You must be signed in to change notification settings

Songbee/tomahawq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Implementation of the JS plugins API from Tomahawk for NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%