npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

crcon.js

v1.0.1

Published

JS interface for Hell Let Loose Community RCON tool.

Downloads

41

Readme

CRCON JavaScript API Module

This repository contains a JavaScript module for interacting with the Hell Let Loose Community RCON tool (CRCON) API. The module provides a comprehensive and fully functional interface for all CRCON API endpoints, enabling developers to build their own web interfaces, bots, and other applications using technologies such as NodeJS.

Features

  • Comprehensive API Coverage: All endpoints of the CRCON API are included, allowing for full interaction with the Hell Let Loose server.
  • Easy Integration: Designed to be easily integrated into your JavaScript projects, making it simple to build web interfaces, bots, and other applications.
  • Promise-Based: Utilizes JavaScript promises for asynchronous operations, ensuring a smooth and efficient user experience.
  • Token Authentication: Supports bearer token authentication for secure API calls.
  • CRCON v10 Compatibility: Fully compatible with the latest CRCON v10 API, including all new and updated endpoints.

Important Notice

This library is mostly untested and is written based on the information provided by the CRCON API get_api_documentation endpoint. Users are encouraged to test the library thoroughly in their own environments and report any issues they encounter.

Getting Started

Installation

To install the module, clone this repository and install the necessary dependencies:

git clone https://github.com/your-username/crcon-js-module.git
cd crcon-js-module
npm install

Alternatively, you can add it to your NodeJS project using npm:

npm install --save crcon.js

Usage

First, import the API class and initialize it with your CRCON API base URL:

const API = require('crcon.js');

const config = {
  token: 'your-api-token-here'
};

const api = new API('https://your-crcon-url.com/api/', config);

Example

// Assuming the API class has been properly imported and initialized

const api = new API('https://your-crcon-url.com/api/');

// Example: Get the list of all players
api.get_players()
  .then(data => {
    console.log('List of players:', data);
  })
  .catch(error => {
    console.error('Error fetching players:', error);
  });

CRCON v10 API Endpoints

The module now includes full support for all CRCON v10 API endpoints. This includes, but is not limited to:

  • Admin Management: Endpoints for managing admins, roles, and pings.
  • Audit Logs: Comprehensive access to audit logs and historical data.
  • Auto Moderation: Configurations and settings related to auto moderation and broadcasts.
  • Bans & Blacklists: Full support for managing bans and blacklists.
  • Player Management: Extensive endpoints for player information, management, and actions.
  • VIP Management: Tools for managing VIPs, including adding, removing, and configuration handling.
  • Server Settings: Access and modify various server settings.
  • Miscellaneous: Includes various utility endpoints like cache clearing, game server reconnecting, and more.

For a complete list of supported endpoints and their usage, please refer to the API Documentation.

Contributing

We welcome contributions to improve this module. If you find any issues or have suggestions for new features, please open an issue or submit a pull request.

Donations

If you find this library useful and would like to support its development, please consider donating to the addresses listed on my profile:

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

This module is a JavaScript port of the Hell Let Loose Community RCON tool (CRCON) API. Special thanks to the Hell Let Loose community for their continued support and development of CRCON.

Documentation

Read the API Documentation