Skip to content

probeiuscorp/playlistjs

Repository files navigation

playlistjs

Make dynamic playlists with TypeScript.

Find YouTube videos

Find some YouTube videos and copy their video ID's from the URL.

// youtube.com/watch?v=dQw4w9WgXcQ
const neverGonnaGiveYouUp = 'dQw4w9WgXcQ'
// youtube.com/watch?v=yPYZpwSpKmA
const togetherForever = 'yPYZpwSpKmA'

Create a playlist

Playlist.yield('Rick Astley', [
    neverGonnaGiveYouUp,
    togetherForever,
]);

Any iterable will do

Playlist.yield('Never gonna be done', function*() {
    while(true) {
        yield neverGonnaGiveYouUp;
    }
});

Upgrade your playlist to Git

Once you want

  • version control,
  • manual testing,
  • automated testing, or
  • your own IDE setup,

your workspace can be upgraded to a Git repository:

  1. In playlistjs, download your existing workspace as a tar file
  2. Clone playlistjs template Git workspace

$ git clone https://github.com/probeiuscorp/playlistjs-sample.git playlist

  1. Extract tar into clone, then commit and push to any Git hosting provider
  2. In playlistjs, select "Convert to Git repository"
  3. Enter clone-worthy URL of hosted Git repository

Get hosted repository URL

About

Make dynamic playlists with TypeScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published