Moosync / librespot-node

Node bindings for librespot

Home Page:https://moosync.app/librespot-node/modules.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

librespot-node

Librespot wrapper for Node.JS.

This project was bootstrapped by create-neon.

Installing

Using yarn

yarn add librespot-node

Using npm

npm install librespot-node --save

Usage

Creating a SPIRC Player

SPIRC player shows up on spotify website / app

const sp = new SpotifyPlayerSpirc({
  auth: {
    username: "username",
    password: "password",
  },
})

sp.on("PlayerInitialized", () => {
  console.log("player initialized")
})

Creating a Normal Player

const sp = new SpotifyPlayer({
  auth: {
    username: "username",
    password: "password",
  },
})

sp.on("PlayerInitialized", () => {
  console.log("player initialized")
})

Further documentation can be found here

About

Node bindings for librespot

https://moosync.app/librespot-node/modules.html

License:MIT License


Languages

Language:Rust 76.4%Language:TypeScript 23.2%Language:JavaScript 0.4%