New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

media-db

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

media-db

using for pull media data from other server

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

media-db

using for pull media datbase to other database

requirements

  • movie client api yts-client
  • movie client api tmdb-client
  • database mongoose
  • some storage space

installation

# use node package manager
npm install media-db

usage

import module

var MediaDb = require('media-db');

create an instance of media db

var options = {
    source: <string>, // yts, tmdb
    dest: <string> // mongodb://<address>/<db-name>
};
var mediaDb = new MediaDb(options);

pull data base with size

// make options
var opts = {
    size: <number> // total item to pull
};

// using for handler when meida db send state
// params
//  - err: error occur during pull
//  - state: object contains value show pull state
//    - done: number of item was pull completed
//    - total: total item to pull
function handler(err, state) { }

// pull
mediaDb.pull(opts, handler);

pull all database

// handler same as pull data with size
function handler(err, state) {}

// pull
mediaDb.pullAll(handler);

development

# clone form revision system control 
# require ssh-key, please contact with owner to get one
git clone git@github.com:thelordofthetimes/media-db.git
cd media-db

# install dependency module
npm install

# run test
npm test

# write code and more..

# update revision system control
git add .
git commit -am '<message>'
git push

Keywords

FAQs

Package last updated on 19 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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