0.5.3 • Published 3 years ago

karaoke-mugen-app-api v0.5.3

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

KaraokeMugen App JavaScript library

A typed javascript library for accessing a karaokemugen app instance.

Currently I only implemented the functions I need myself over the SocketIO REST API, so some features that work over websocket might not be available at this time. If you need more api functions to be added, feel free to implement and commit them.

Installation

npm install --save karaoke-mugen-app-api or yarn add karaoke-mugen-app-api

Then create an instance of the api service

const mugenApi = new MugenApiRest(url, username, password);

Examples

const mugenApi = new MugenApiRest(url, username, password);

// Get specific karas and list all titles
const karas = mugenApi.getKaras({ filter: "renai circulation" });
console.log("Found karas: " + karas.content.map(kara => kara.title).join(", "))

Tests

To run the tests you need an active KaraokeMugen-app running and a testuser. Run tests with yarn test or in watchmode yarn test --watch

0.5.3

3 years ago

0.5.0

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.3

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago