Skip to content

Instantly share code, notes, and snippets.

@mathieue
Last active January 14, 2019 14:04
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mathieue/bb6e00a6010c64678857d166a968b716 to your computer and use it in GitHub Desktop.
Export a playlist to any service calling Playlist Converter Api with nodejs.
console.log("runing playlist converter api demo....");
var name = "Super Playlist";
var tracks = [];
tracks.push("Shape of You Ed Sheeran");
tracks.push("One Dance Drake");
let tracksJoined = tracks.join("\n");
let uri =
"http://www.playlist-converter.net/#/?text=" +
encodeURIComponent(tracksJoined) + "&name=" + encodeURIComponent(name);
console.log("Follow this url:");
console.log(uri);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment