3.0.2 • Published 9 years ago

latestvid v3.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Latest Vid

A module for interfacing with a YouTube accounts latest upload. Either use globally through your command line or use at the module level. Available via npm.

LatestVid

Usage

Prerequisites: Node v4.0.0

CLI

$ npm install -g latestvid
Usage: latestvid [OPTIONS]
  Open/download the most recent video from any YouTube account.
Options:
  -h --help         Display this help dialog
  -v --version      Display current version
  -d --download     Download latest video instead of opening
  -u --user         YouTube username
Example:
  $ latestvid -u marquesbrownlee      # open latest MKBHD video
  $ latestvid -u marquesbrownlee -d   # download latest MKBHD video

Module

see ./examples for example implementation

$ npm install -S latestvid
const latestvid = require('latestvid');

// to open video
latestvid.getLatest('marquesbrownlee')
  .then(url => {
    console.log(url);
    return latestvid.openUrl(url);
  })
  .catch(e => {
    return console.error(e.message);
  });

// to download video
latestvid.getLatest('marquesbrownlee')
  .then(url => {
    console.log(url);
    return latestvid.downloadVideo(url);
  })
  .catch(e => {
    return console.error(e.message);
  });

Contribute

Feel free to open an issue or make a pull request!

Idea inspired by last-last-week.

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.2.2

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.1

10 years ago