@kywagaha/spotify-event-api
TypeScript icon, indicating that this package has built-in type declarations

0.2.10 • Public • Published

spotify-event-api

Work in progress. Requires NodeJS 12

Callbacks

var spotifyEventApi = require('@kywagaha/spotify-event-api')
var spotifyApi = new spotifyEventApi.Player();
require('spotify-event-api').event.on(event, response)

current event emitters:

'update-song',
'update-album',
'update-device',
'update-playing-state',
'update-shuffle-state',
'update-repeat-state',
'update-volume',
'update-playing-type'

all return full spotify '/player' body

'progress' emits every second (every api update) with an object:

{
  duration_ms: number,
  progress_ms: number,
  progress_percent: number,
  delta_percent: number,
  delta_ms: number
}

Authorization

/@kywagaha/spotify-event-api/

    Package Sidebar

    Install

    npm i @kywagaha/spotify-event-api

    Weekly Downloads

    1

    Version

    0.2.10

    License

    ISC

    Unpacked Size

    53.1 kB

    Total Files

    8

    Last publish

    Collaborators

    • gabehaarberg
    • kyleawayan