3.0.2 • Published 8 years ago
latestvid v3.0.2
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.
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
8 years ago
3.0.1
8 years ago
3.0.0
8 years ago
2.2.2
8 years ago
2.2.1
8 years ago
2.2.0
8 years ago
2.1.3
8 years ago
2.1.2
8 years ago
2.1.1
8 years ago
2.1.0
8 years ago
2.0.0
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.0.1
8 years ago