1.0.8 • Published 4 years ago

spotify-playing v1.0.8

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

Spotify Playing

Node.js Package NPM Version

Gets the current song playing on Spotify

Requirements

Works on Windows, Mac, and Linux with the desktop spotify client.

Example

const playing = require('spotify-playing')

setInterval(playing, 1000, (err, now) => {
    if (err)
        // Platform not supported
        // Cannot find Spotify process
        // Nothing playing on Spotify
        return console.error(err)

    // { artist: 'The Fratellis', song: 'Chelsea Dagger' }
    console.log(now)
})

Troubleshooting

  • If playing on another device you first might need to switch to this device and switch the song.
  • Close and reopen Spotify
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago