Socket
Book a DemoInstallSign in
Socket

ytmd

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytmd

Make YouTube video URL markdown ready!

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

cli

FAQs

Package last updated on 07 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts