0.1.0 • Published 6 months ago

cfx-status v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Simple CFX API Package

This package is a cfx status package which uses CFX.re API.

  • Install
npm install cfx-status

Utils

  • Fetching General Status
  • Fetching Components
  • Get Component by ID
  • Get Component by Name

Usages

  • Basic Usage

    main.ts

import CFXStatus from "cfx-status";
(async() => {
    const cfxre = new CFXStatus()
    // Automaticly Fetchs Components and General Status
    const generalStatus = await cfxre.currentStatus // CFX.re Status
    const components = await cfxre.components // CFX.re Systems Status
})();
  • Advanced Usage

    main.ts

import CFXStatus from "cfx-status";
(async() => {
    const cfxre = new CFXStatus()
    // Automaticly Fetchs Components and General Status
    const wantedComponent = await cfxre.getComponentById("component-id")
    const wantedComponentTwo = await cfxre.getComponentByName("component-name")

    console.log(`${wantedComponent.name}: ${wantedComponent.status}`)
    console.log(`${wantedComponentTwo.name}: ${wantedComponentTwo.status}`)
})();
0.1.0

6 months ago

0.1.0-dev2

6 months ago

0.1.0-dev

6 months ago

0.0.9-dev

6 months ago

0.0.7

6 months ago

0.0.7-dev

6 months ago