erlc
Version:
An ER:LC API wrapper for JS/TS
42 lines (30 loc) • 1.08 kB
Markdown
with 100% coverage of the ER:LC API.
First you need to install the package.
`npm i erlc`
Setting up is super simple:
```js
// index.js
const erlc = require('erlc')
const client = new erlc.Client({
globalToken: '' // Here you enter your global token provided for the API
})
client.config() // Registers your client
```
Now you can start using API Methods - here are a few examples:
```js
// api.js
const erlc = require('erlc')
const getServerFunc = async () => {
const serverId="" // The server ID you wish to target
const server = await erlc.getServer(serverId).catch(console.log) // Gets the server, logs any errors
console.log(server) // Logs the server object
}
getServerFunc()
```
Library Development - [0xRaptor](https://twitter.com/0xRaptorRblx)
API Development - [Police Roleplay Community](https://twitter.com/PRC_Roblox)
A lightweight API Wrapper