Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tmdb-client

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tmdb-client - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

lib/tmdb-client.js

2

index.js

@@ -1,2 +0,2 @@

var TmdbClient = require('./lib/tmbn-client');
var TmdbClient = require('./lib/tmdb-client');
module.exports = TmdbClient;
{
"name": "tmdb-client",
"version": "0.1.5",
"version": "0.1.6",
"description": "the movie database api for client",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -92,10 +92,19 @@ # tmdb-client

## next api
## find season of tv
```javascript
var tvId = <number>;
var seasonNumber = <number>;
tmdb.findTvSeason(tvId, seasonNumber, function(error, season) {});
```
## find episode of season
```javascript
// next day comming with
Tmdb.findTvSeason(tvId, function(error, items) {});
Tmdb.findTvEpisode(seasonId, function(error, items) {});
var tvId = <number>;
var seasonNumber = <number>;
var episodeNumber = <number>;
tmdb.findTvSeason(tvId, seasonNumber, epNumber, function(error, episode) {});
```
## next api (pending)
## development

@@ -102,0 +111,0 @@

@@ -65,2 +65,26 @@ var chai = require('chai');

});
it('find tv season', function(done) {
tmdbClient.findTvSeason(39351, 1, function(err, season) {
expect(err).equal(null);
var keys = ['air_date', 'episodes', 'name', 'overview', 'id',
'poster_path', 'season_number'
];
expect(season).include.keys(keys);
done();
});
});
it('find tv episode', function(done) {
tmdbClient.findTvEpisode(39351, 1, 1, function(err, season) {
expect(err).equal(null);
var keys = ['air_date', 'crew', 'episode_number', 'name',
'overview', 'id', 'production_code', 'still_path', 'season_number'
];
expect(season).include.keys(keys);
done();
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc