npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tvtime-api

v0.3.0

Published

Unofficial TvTime Api for node

Downloads

45

Readme

TvTime-api

Unofficial TvTime Api for node

Install

npm install tvtime-api

Use

let tvtime = require('tvtime-api')

tvtime.login({username}, {password})

tvtime.show().then(data => {
  console.info(data)
})

Example of a response

[
  {
    "id": 260449,
    "name": "Vikings",
    "overview": "Ambitious Viking legend Ragnar Lothbrok, ascends from a young warrior to the King of the Viking tribes with the help of his shieldmaiden Lagertha, jealous brother Rollo, fearless
sons, and motley band of pillaging conquerors.",
    "seasons": [
      {
        "name": "Temporada 1",
        "episodes": [
          { "id": "4383243", "name": "Rites of Passage", "airDate": "2013-03-03", "watched": true },
          { "id": "4383244", "name": "Wrath of the Northmen", "airDate": "2013-03-10", "watched": true },
          { "id": "4383245", "name": "Dispossessed", "airDate": "2013-03-17", "watched": true },
          { "id": "4383246", "name": "Trial", "airDate": "2013-03-24", "watched": true },
          { "id": "4383248", "name": "Raid", "airDate": "2013-03-31", "watched": true },
          { "id": "4383252", "name": "Burial of the Dead", "airDate": "2013-04-07", "watched": true },
          { "id": "4383257", "name": "A King's Ransom", "airDate": "2013-04-14", "watched": false },
          { "id": "4383260", "name": "Sacrifice", "airDate": "2013-04-21", "watched": false },
          { "id": "4383261", "name": "All Change", "airDate": "2013-04-28", "watched": false }
        ]
      },
      { "name": "Temporada 2", "episodes": [Array...] },
      { "name": "Temporada 3", "episodes": [Array...] },
      { "name": "Temporada 4", "episodes": [Array...] },
      { "name": "Temporada 5", "episodes": [Array...] },
      { "name": "Temporada 6", "episodes": [Array...] }
    ]
  }
]

Methods

| Method | Description | Parameter | Login required | Response | | --- | --- | --- | --- | --- | | login | Login to TvTime | username, password | | | | logout | Logout (remove data) | | | | | shows | Get list series you track | | ✔ | Array | | show | Info serie and list episodes | idShow | | Array | | followShow | Follow Show | idShow | ✔ | | | unFollowShow | UnFollow Show | idShow | ✔ | | | episodeWatch | Mark episode as watched | idEpisode | ✔ | | | episode | Get info about | idShow, idEpisode | | Array | | episodeEmotions | Set emotions episode | idEpisode, idEmotion | ✔ | |

Emotions

  • 😀 Good = 1
  • 😄 Fun = 2
  • 😲 Wow = 3
  • 😢 Sad = 4
  • 🙄 So-so = 6
  • 😶 Bad = 7