Skip to content

0xRaptor/erlc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ER:LC API Wrapper

A lightweight API Wrapper with 100% coverage of the ER:LC API.

Getting Started

First you need to install the package.

npm i erlc

Setting Up

Setting up is super simple:

// 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:

// 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()

Credits

Library Development - 0xRaptor API Development - Police Roleplay Community

About

An API Wrapper for the ER:LC API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors