Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

metalsmith-youtube

1.0.2 • Public • Published

metalsmith-youtube

A Metalsmith plugin that lets you get embed Youtube Videos

Build Status

Installation

$ npm install metalsmith-youtube

Usage

step 1

var youtube = require('metalsmith-youtube');
 
metalsmith.use(youtube({
  width: 560,      // optional, width video (default 560)
  height: 315,     // optional, height video (default 560)
  suggested: true,       // optional, display suggested videos
  controls: true,     // optional, display controls
  showTitle: true // optional, show video title and player actions
  privacy : true  // optional, enable privacy-enhaced mode
}));

step 2

---
title: test
---

## only the id
youtube|hWhMKalEic8

CLI Usage

{
  "plugins": {
    "metalsmith-youtube": {
    "width:": "560",
    "height": "315",
     "suggested": "true",   
      "controls": "true",
      "showTitle": "true",
      "privacy" : "true"
    }
  }
}

License

MIT

install

npm i metalsmith-youtube

Downloadsweekly downloads

4

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability