New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

directdetect

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directdetect

Turn a variety of video-hosting website links into playable video streams.

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
1
-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

directdetect

Turn a variety of video-hosting website links into playable video streams.

Currently directdetect supports the following websites:

[ 'vidspot.net', 'allmyvideos.net', 'gorillavid.in', 'daclips.in',
  'vodlocker.com', 'royalvids.eu', 'nosvideo.com', 'promptfile.com',
  'sharerepo.com', 'sharesix.com', 'filenuke.com', 'thefile.me', 'videoweed.es',
  'novamov.com', 'vidzi.tv', 'zalaa.com', 'uploadc.com' ]

Installation

For the module:

$ npm install directdetect

The command-line program:

$ npm install -g directdetect

Examples

var fs = require('fs');
var directdetect = require('directdetect');

var link = 'http://guerrillavid.in/f94k31d3';

if (directdetect.test(link)) {
    directdetect(link).pipe(fs.createWriteStream('test.mp4'));
}

API

Find the direct download link and download it as a readable stream. You can normally expect an MP4 with H264, but don't count on it.

options is an optional argument that if provided, is passed into the needle request functions. This is provided for a convenient method to change the browser's user agent or add an HTTP proxy.

Check if directdetect has a handler for your video link or not. Returns a boolean true/false value.

directdetect.sources

An array of the hosts directdetect supports.

CLI

Usage: directdetect <link> [options]
        <link> being a video link from a supported host.

        -h, --help      Display this screen.

        -c, --check     If <link> is provided, return true/false
                        depending if directdetect is able to
                        stream the link or not. Otherwise, list the
                        available video-hosting websites.

        -t, --timeout   Set a custom timeout for each request. By
                        default the timeout is set to 10.
        -x proxy        An HTTP proxy to send requests with.
        -a agent        Set a custom HTTP User-Agent string.

        -q, --quiet     Don't output download progress.
        -o file         Output video contents to specified file.
        -s, --stdout    Dump video contents to stdout.

Examples

$ directdetect http://guerrillavid.in/f94k31d3 -o ./out.mp4
$ directdetect http://guerrillavid.in/f94k31d3 --stdout | mplayer --cache 8192 -

License

MIT

Keywords

direct

FAQs

Package last updated on 22 Dec 2014

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