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 youtube-playlist-sorter with all npm packages installed. Try it out:

var youtubePlaylistSorter = require("youtube-playlist-sorter")

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

youtube-playlist-sorter v0.2.5

Sorts ↕️ a public playlist based on it's popularity 🔥


npm npm

Sorts ↕️ a public playlist based on it's popularity 🔥

:floppy_disk: Installation

$ npm i -g youtube-playlist-sorter

:arrow_forward: Usage

Create an API_KEY (how to create the key) and put it in your ~/.bashrc.

echo 'export YOUTUBE_PLAYLIST_SORTER_API_KEY=AIzaxxxxxxxyyyyyyyyzzz' >> ~/.bashrc
source ~/.bashrc


:wrench: Project Setup (Development)

  1. Clone the repo

  2. Run npm install inside the directory

  3. Get/create the API_KEY (as explained previously)

  4. Run the program

$ npm run dev <PLAYLIST_URL>

:mortar_board: License


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