spotify-helper
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Spotify Helper

NPM helper module to control the Spotify player.

This module allows you to control the Spotify player. From changing player state or changing the song currently playing.

Installing

npm install spotify-helper

Simple Example

This example will show you how the pause the player.

const { SpotifyHelper } = require('spotify-helper');
let Spotify = new SpotifyHelper();

Spotify.init()
  .then(function () {
    return Spotify.pause();
  });

This example will show you how the play the player.

const { SpotifyHelper } = require('spotify-helper');
let Spotify = new SpotifyHelper();

Spotify.init()
  .then(function () {
    return Spotify.play();
  });

Bugs

You can report bugs with the repo issue tracker.

Readme

Keywords

Package Sidebar

Install

npm i spotify-helper

Weekly Downloads

2

Version

2.0.1

License

MIT

Last publish

Collaborators

  • artdude543
  • unwrittenfun