ytmd
v1.0.1
Published
Make YouTube video URL markdown ready!
Downloads
2
Maintainers
Readme
ytmd
Make YouTube video URL markdown ready!
Install
$ npm install --save ytmd
Usage
var ytmd = require('ytmd');
var url = "https://www.youtube.com/watch?v=jo_B4LTHi3I";
ytmd(url, function(err, md) {
if(!err) {
console.log(md);
}
});
CLI
You can also use it as a CLI app by installing it globally:
$ npm install --global ytmd
$ ytmd --help
Usage
$ ytmd <url>
Example
$ ytmd https://www.youtube.com/watch?v=jo_B4LTHi3I
Sample output:
$ ytmd https://www.youtube.com/watch?v=jo_B4LTHi3I
[![Introduction to Node.js with Ryan Dahl](http://img.youtube.com/vi/jo_B4LTHi3I/0.jpg)](http://www.youtube.com/watch?v=jo_B4LTHi3I)
GIF FTW:
License
MIT © Hemanth.HM