ytmd

1.0.1 • Public • Published

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:

License

MIT © Hemanth.HM

Package Sidebar

Install

npm i ytmd

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • hemanth