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

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