cheapsteak / canistreamit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I Stream It Api

A simple js wrapper for the can I stream it api

Install

npm i canistreamit

Example

Promise Chain

var canistreamit = require('canistreamit');
canIStreamIt.search('evil dead')
	.then(function(results){
		return canIStreamIt.streaming(results[0]);
	})
	.then(function(result){
		console.log(result);
	})

callbacks

var canistreamit = require('canistreamit');
canistreamit.search('evil dead', function(results) {
	canIStreamIt.streaming(results[0], function(result) {
		console.log(result);
	})
})

About

License:MIT License


Languages

Language:JavaScript 100.0%