New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

erlc

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erlc

An ER:LC API wrapper for JS/TS

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
18
-18.18%
Maintainers
1
Weekly downloads
 
Created
Source

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

PRC API Docs

Credits

Library Development - 0xRaptor API Development - Police Roleplay Community

Keywords

erlc

FAQs

Package last updated on 22 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts