node-spotify-bus
v1.0.1
Published
Check what song, artist and album are playing now on your computer
Downloads
5
Readme
Node Spotify Bus
Check the current status of the song playing on Spotify on your computer. Works on linux and macOS.
Dependencies
- libdbus-1-dev (Ubuntu based systems)
- libglib2.0-dev (Ubuntu based systems)
You can find these dependencies for you OS or Linux distro as well.
Instalation
npm i node-spotify-bus
Usage
const nodeSpotify = require('node-spotify')
// import nodeSpotify from 'node-spotify'
// Get the current playing song
nodeSpotify.getSong().then(song => console.log(song))
// Get the current playing artist
nodeSpotify.getArtist().then(artist => console.log(artist))
// Get the current playing album
nodeSpotify.getAlbum().then(album => console.log(album))