@caba/getseries

Package to fetch series ¯\\_(ツ)_/¯

Usage no npm install needed!

<script type="module">
  import cabaGetseries from 'https://cdn.skypack.dev/@caba/getseries';
</script>

README

getseries

Package to fetch series from a not so random API ¯\(ツ)

Note: This get the last season or last episode or both latest if you don't specify any.

Prerequisite

In order for this script to work you must have these environment variables in your ${shell_profile}rc

GET_SERIES_ENDPOINT=<some-endpoint>
GET_SERIES_SEASONS_ENDPOINT=<another-endpoint>

USAGE

$ getseries <NAME> [PATTERN]

PATTERN

s<number>       season
e<number>       episode

EXAMPLE

$ getserie arrow
    Get the last episode from the last season

$ getserie arrow s1
    Get the last episode from season 1

$ get serie arrow s1 e2
    Get the second episode from season 1

Hey!

Commits on this PR are made with commitizen ;)