osu-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

osu-wrapper

An easy wrapper for osu API and support intellisense.

Installing

Version

#npm
npm install osu-wrapper

#yarn
yarn add osu-wrapper

Example Usage

  • grab your own token at HERE

getUser

Methods
  • getUser(option: userOpt)
const { Osu } = require("osu-wrapper");
const client = new Osu("ur_token");

async function user() {
    const result = await client.getUser({ u: "ivoskydeav", m: "3" });
    console.log(result);
    return  result;
}
user()

getBeatmaps

Methods
  • getBeatmaps(option: beatOpt)
const { Osu } = require("osu-wrapper");
const client = new Osu("ur_token");

async function getBeatmaps() {
    const result = await client.getBeatmaps({ b: 309176 });
    console.log(result);
    return  result;
}
getBeatmaps()

For more information go to documentation

n.b

Actually i don't know how to write the documentation, but i hope you will understand and if you have any question feel free to join my Discord Server

© Aizuu

Package Sidebar

Install

npm i osu-wrapper

Weekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

20.8 kB

Total Files

11

Last publish

Collaborators

  • izuu4302