0.1.6 • Published 2 years ago

osu-lazer-db-reader v0.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Osu Lazer db reader

Read and react to changes in the new realm database of osu lazer.

⚠️ This is a work in progress. Only beatmapset and beatmap are supported. Contributions are welcome!

Installation

npm:: npm install osu-lazer-db-reader

yarn: yarn add osu-lazer-db-reader

Exemple

import { open, OsuDb } from "osu-lazer-db-reader";

const osuDb = await open("/path/to/osu-lazer-db.realm");

// Get all beatmapsets and beatmaps
const { beatmapsets, beatmaps } = osuDb;

// Add a listener to the beatmapset insertion
osuDb.addListener(
  OsuDb.Events.beatmapsetInserted,
  (_index, insertedBeatmapset) => {
    console.log(`New beatmapset: ${insertedBeatmapset.title}`);
    console.log(`New beatmapset: ${insertedBeatmapset.onlineId}`);
  }
);
0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago