ordr.js is a Node.js module that allows you to easily interact with the o!rdr API and WebSocket.
• Promise based
• Performant
• 100% coverage of the o!rdr API and WebSocket
With GitHub :
• Download the project or clone it
• Go to the ordr.js folder and do npm install
• Require the client.js
With NPM :
• Download the project
• Do npm install ordr.js
• Require the library
See the API documentation
See the WebSocket documentation
See the changelog
The library can be used in both CommonJS and ES Modules
const { Client } = require("ordr.js");
//OR
import { Client } from "ordr.js";
const client = new Client();
client.skins().then((data) => {
console.log(data);
});
//OR
const myFunc = async () => {
const data = await client.skins();
console.log(data);
};
myFunc();
If you have an API key, you can specify it when initiating the client :
const client = new Client("API_KEY");
The library is async, be sure to use async functions or .then()
const { Client } = require("ordr.js");
//OR
import { Client } from "ordr.js";
const client = new Client();
client.on("event", (data) => {
console.log(data);
});
client.start();
List of events available here
See the license