Control music via your terminal 🎶
Using JXA via osascript via Node.js.
- Node.js (v0.12.7 or greater)
- Mac OS X (Yosemite 10.10.0 or greater)
- Some tracks in your music library
$ npm install --global music-remote
It’s interactive and offering an own prompt.
$ music
music: help
Commands:
help [command...] Provides help for a given command.
exit Exit music-remote.
play Start playing the current selection
play artist Plays songs by an artist.
play album Plays an album.
stop Stop playing the current selection
pause Pause playing the current selection
next Advance to the next track in the current playlist.
previous Return to the previous track in the current playlist.
back Reposition to beginning of current track or go to previous track if already at
start of current track.
search [options] <searchterm> Fuzzy search album, artists and songs.
Music:
Note:
You can also pass commands and options from the outside.
$ music stop --exit
Music:
✔ Stopped playing ♪♬
$
Special shoutout to @dthree for his nice way to offer support for vorpal 😊
This tiny little module wouldn‘t be possible without the work of all these amazing humans. Thanks.
MIT © Michael Kühnel