1.0.0 • Published 8 years ago

stremio-addons-box v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

stremio-addons-box

HTTP server that hosts any stremio add-ons you list

Usage

npm install stremio-addons-box
stremio-addons-box '[ "stremio-vodo", "addon-helloworld" ]' # array of strings passed to npm install; alternatively path to json

# open browser at http://localhost:8080/stremio-vodo/stremioget/stremio/v1 for vodo add-on
# open browser at http://localhost:8080/stremio-filmon/stremioget/stremio/v1 for filmon

Programatic

var addonsBox = require('stremio-addons-box')
var http = require('http')

addonsBox(['stremio-vodo'], function(err, router, ids) {
    http.Server(router).listen(8080).on('listening', function() {
    	// open browser at http://localhost:8080/stremio-vodo/stremioget/stremio/v1 for vodo add-on
    })
})