Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including yplayer with all npm packages installed. Try it out:

var yplayer = require("yplayer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

yplayer v0.2.5

Listen to/watch youtube videos from the CLI!

yplayer

yplayer in urxvt
I initially made this player called gplayer, where the cli app used the Grooveshark database to get some music playing in your terminal. The project was deprecated after the close of Grooveshark (rip). But after all this happened I still needed a music player for my cli, so I made this. y(outube)player, it uses the same principles as gplayer, but now with youtube as a source.

Install

npm install yplayer -g

Usage

Usage:
  yplayer [OPTIONS] [ARGS]

Options:
  -s, --song             The song you want to play.
  -v, --video            The video you want to watch.
  -q, --quality          The quality you want to watch/play your media.
  -h, --help             Display help and usage details


Check here for Youtube's quality options (itag values).

License

Check the LICENSE.md for more information.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free