An open API service indexing awesome lists of open source software.

https://github.com/amilajack/node-eztv-example

A clonable and runnable example repo for the eztv npm package
https://github.com/amilajack/node-eztv-example

Last synced: about 1 month ago
JSON representation

A clonable and runnable example repo for the eztv npm package

Awesome Lists containing this project

README

          

node-eztv-example
=================
[![Build Status](https://travis-ci.com/amilajack/node-eztv-example.svg?branch=master)](https://travis-ci.com/amilajack/node-eztv-example)

A clonable and runnable example repo for the [eztv npm package](https://github.com/moesalih/node-eztv)

## Setup
```bash
git clone https://github.com/amilajack/node-eztv-example
cd node-eztv-example
yarn
yarn start
```

## Example
```js
import eztv from 'eztv';

(async () => {
const [firstShow, ...shows] = await eztv.getShows();
console.log(firstShow, shows);

const show = await eztv.getShows({ query: 'big bang' });
console.log(show);

const showWithEpisodes = await eztv.getShowEpisodes(376, 'sherlock');
console.log(showWithEpisodes.episodes);
})();
```