spiget-api
v1.0.3
Published
A client for Spiget that allows you to get the authors, resources and categories from spigotmc.org
Downloads
14
Maintainers
Readme
Spiget API Client (Spigot API)
This library allows you to interact with the Spigot API (Spiget), to obtain authors, categories and resources (Plugins).
Table of Contents:
Quickstart
Installing the client librery...
npm install spiget-api
Import the library...
import SpigetAPI from 'spiget-api';
// or
const SpigetAPI = require('spiget-api');
// Instance this
const api = new SpigetAPI("agent_name");
Or if you using in the browser
<script src="https://unpkg.org/spiget-api@latest/dist/spiget-api.umd.min.js"></script>
<script>
let api = new spigetapi("agent_name"); // To instance
</script>
Get array of resources...
let resources = await api.getResources();
Contributing
To contribute this is the repository of this package.