node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

tubeage

📺 tubeage 📺

A node.js command line utility that takes a YouTube embed code and returns a thumbnail link to that video

You can install it from npm:

npm install tubeage -g

Usage

tubeage 0j1KA8YlZ0w

Output:

<a href="https://www.youtube.com/watch?v=0j1KA8YlZ0w"><img src="http://img.youtube.com/vi/0j1KA8YlZ0w/default.jpg"/></a>

Rendered result:

You can also access different quality thumbnails:

tubeage 0j1KA8YlZ0w mq

The options are:

  • mq - medium quality
  • hq - high quality
  • max - maximum quality
  • sd - standard definition quality