@th3shadowbroker/spigotmc.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

SpigotMC.js

SpigotMC.js is an API wrapper for the XenforoResourceManageAPI. This project is fully open-source.

Using SpigotMC.js in your project

npm install @th3shadowbroker/spigotmc.js or yarn add @th3shadowbroker/spigotmc.js

Dependencies

Axios: This library uses the popular Axios REST client to perform requests to the Spigot API.

Documentation

A full documentation can be found on GitHub Pages.

Usage

import { Spigot } from '@th3shadowbroker/spigotmc.js';

new Spigot().findAuthor("th3shadowbroker")
    .then(author => {
        if (author) {
            console.log(`The authors id is ${author.id}!`);
        } else {
            console.error("Author not found!");
        }
    })
    .catch(error => {
        console.error(error);
    });

Package Sidebar

Install

npm i @th3shadowbroker/spigotmc.js

Weekly Downloads

10

Version

1.0.10

License

MIT

Unpacked Size

27.3 kB

Total Files

19

Last publish

Collaborators

  • th3shadowbroker