Skip to content

Finds all Spotify tracks in a given text and adds them to a Spotify Playlist

License

Notifications You must be signed in to change notification settings

dirkluijk/text-to-playlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

190a80e Â· Jan 4, 2025

History

28 Commits
Jan 3, 2025
Jan 4, 2025
Jan 3, 2025
Jan 4, 2025
Jan 4, 2025
Jan 3, 2025
Jan 4, 2025
Jan 4, 2025
Jan 3, 2025
Jan 4, 2025
Jan 3, 2025

Repository files navigation

Text to playlist 🎸

JSR version Build status

Simple CLI script written in Deno to sync Spotify tracks from a raw text to a Spotify playlist.

Usage

Install Deno, and run:

deno run --allow-net jsr:@dirkluijk/text-to-playlist <inputFileOrText> --playlist <playlistUrl>

Options

-h, --help                            - Show this help.                                                                  
-V, --version                         - Show the version number for this program.                                        
-P, --playlist         <playlistUrl>  - The Spotify Playlist URL to add to tracks to                      (required)     
-D, --debug                           - Outputs debugging logs                                                           
--remove-duplicates    [flag]         - Whether to filter out duplicates from input                       (Default: true)
--remove-other-tracks  [flag]         - Whether to remove tracks from playlist that do not exit in input  (Default: false)

Programmatic usage

To use this library in Deno, install it from JSR:

deno add jsr:@dirkluijk/text-to-playlist
import { textToPlaylist } from "@dirkluijk/text-to-playlist";

await textToPlaylist("some text or file", "link to playlist");

Check out the API docs here.

Contributors

About

Finds all Spotify tracks in a given text and adds them to a Spotify Playlist

Resources

License

Stars

Watchers

Forks

Packages

No packages published