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
- Host: GitHub
- URL: https://github.com/amilajack/node-eztv-example
- Owner: amilajack
- Created: 2018-09-21T20:02:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-03T19:54:37.000Z (about 7 years ago)
- Last Synced: 2025-06-16T03:37:47.342Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
node-eztv-example
=================
[](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);
})();
```