osu-wrapper
v1.0.3
Published
An easy wrapper for osu API and support intellisense.
Downloads
24
Maintainers
Readme
osu-wrapper
An easy wrapper for osu API and support intellisense.
Installing
#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