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

open-spotify-remote

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-spotify-remote

Controle your Spotify app via open.spotify.com

  • 1.0.3
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Open Spotify Remote

Code Climate Issue Count

Controle your Spotify app via open.spotify.com

Getting Started

Just install the module and try it out with some exampels :)

Installing

$ npm install open-spotify-remote --save

Example code

var osr = require('open-spotify-remote');

var spotify = new osr();

spotify.connect();

spotify.on('connected', function() {
    // Play one song over and over
    //play(track)
    spotify.play("1LVQ5LsVHxpgnY7VAyLjCR");
    
    // Play a album
    //playlist(user, playlist, track)
    spotify.playlist("spotifydiscover", "67oFw1dAUZhGve2hPv5kgr", "7tJWarixh0rqI31ob9J7Kw");
});

spotify.on('error', function(error) {
    console.log(error);
});

spotify.on('playing', function(play) {
    console.log(play);
});

spotify.on('status', function(status) {
    console.log(status);
});

setInterval(function () {
    spotify.status();
}, 2000);

// Use this to pause or unpause
spotify.pause(true);

Running the tests

No test avalible. :(

TODO

  • Auto connect to different port.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

chrippa

Keywords

FAQs

Package last updated on 10 Sep 2016

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