1.0.1 • Published 9 years ago

ytmd v1.0.1

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

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)

Introduction to Node.js with Ryan Dahl

GIF FTW:

npm.io

License

MIT © Hemanth.HM