esperatv-sourcing

2.0.2 • Public • Published

esperatv-sourcing

Sourcing video content for EsperaTV

Installation

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install esperatv-sourcing 

API

var Sourcing = require('esperatv-sourcing')
 
var sourcing = new Sourcing();
 
var freeSoftwareProvider = function(query) {
  if ('ubuntu' === query) return Promise.resolve(['magnet:?xt=urn:btih:5a8ce26e8a19a877d8ccc927fcc18e34e1f5ff67']);
  return Promise.resolve([]);
};
 
sourcing.use(freeSoftwareProvider);
 
sourcing.forTitle('ubuntu', function(magnets) {
  console.log(magnets);
});
 

License

MIT

Package Sidebar

Install

npm i esperatv-sourcing

Weekly Downloads

2

Version

2.0.2

License

MIT

Unpacked Size

6.03 kB

Total Files

5

Last publish

Collaborators

  • rylans