Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spotify-local-control

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify-local-control

Control a local spotify client via spotify-webhelper

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by1000%
Maintainers
1
Weekly downloads
 
Created
Source

spotify-local-control stability

npm version downloads js-standard-style

Usage

var connect = require('spotify-local-control')
var client = connect()

client.play('spotify:track:0JhKJg5ejeQ8jq89UQtnw8')
client.pause()
client.resume()
client.status().then(res => console.log(res))

Can also be used on the command line:

$ spotify-local-control

  Usage:
      $ spotify-local-control <command>

    Commands:
      <default>    Show usage
      play <uri>   Play a track
      status       Show artist and track
      pause        Pause the current track
      resume       Resume the current track

    Examples:
      $ spotify-local-control play spotify:track:0JhKJg5ejeQ8jq89UQtnw8

API

client = connect()

Initialize a new client.

client.play(spotifyUri, spotifyContext?)

Plays the given song by spotifyUri. spotifyContext can be specified to display a related song, playlist, album or artist.

client.pause()

Pauses the playback.

client.resume()

Resumes the playback.

client.status(returnOn?, returnAfter?)

Get status information about the local client.

Installation

$ npm install spotify-local-control

See Also

  • spotify-find - get spotify catalog information

License

MIT

Keywords

FAQs

Package last updated on 27 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc