https://github.com/moosync/librespot-node
Node bindings for librespot
https://github.com/moosync/librespot-node
bindings librespot node nodejs rust
Last synced: 9 months ago
JSON representation
Node bindings for librespot
- Host: GitHub
- URL: https://github.com/moosync/librespot-node
- Owner: Moosync
- License: mit
- Created: 2022-11-13T19:45:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T00:54:40.000Z (over 2 years ago)
- Last Synced: 2024-11-16T22:29:35.787Z (over 1 year ago)
- Topics: bindings, librespot, node, nodejs, rust
- Language: Rust
- Homepage: https://moosync.app/librespot-node/modules.html
- Size: 1.77 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# librespot-node
Librespot wrapper for Node.JS.
This project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).
### Installing
#### Using yarn
```bash
yarn add librespot-node
```
#### Using npm
```bash
npm install librespot-node --save
```
### Usage
#### Creating a SPIRC Player
SPIRC player shows up on spotify website / app
```typescript
const sp = new SpotifyPlayerSpirc({
auth: {
username: "username",
password: "password",
},
})
sp.on("PlayerInitialized", () => {
console.log("player initialized")
})
```
#### Creating a Normal Player
```typescript
const sp = new SpotifyPlayer({
auth: {
username: "username",
password: "password",
},
})
sp.on("PlayerInitialized", () => {
console.log("player initialized")
})
```
[Further documentation can be found here](https://moosync.app/librespot-node/)