Code Monkey home page Code Monkey logo

spoti-cli's Introduction

spo-cli

A simple Node.JS program to control current playback



Requirements

  • Node version >= Node v20


Installation

📦From npm

Run npm install -g spo-cli

📃From source

If you want to run it from source, downlaod it simply install all dependencies with npm/yarn (with yarn install).




❓How does it work

The program needs to connect to Spotify API so it needs a valid access token provided after via the Spotify.com website. An ExpressJS web server is disposed in order to recieve the token and the program itself (after having checked its validity) use it to control the playback. If the token is not valid anymore, the user is prompted to authorization again

⚙️Commands

The syntax is pretty simple. It's node app.js or spo-cli (if installed from npm) followed by one of the next arguments. If you grabbed the binaries, execute the program with one of the next arguments.

play : resume/play current song

pause : pause current song

next : skip song

prev : go to previous song

shuffle : shuffle playback

vol/volume n (where n is an integer between 0 and 100): set the volume to the specified value

reauth : to authorize again the tool



If no argument is specified, the song that is currently playing is displayed





spoti-cli's People

Contributors

silviosanto6605 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.