npm.io
1.0.3 • Published 3 years ago

spiget-api

Licence
MIT
Version
1.0.3
Deps
3
Size
738 kB
Vulns
21
Weekly
0
Stars
1

SPIGET Logo

Spiget API Client (Spigot API)

NPM VERSION DOWNLOADS LICENSE BUILD Codacy Badge Codacy Badge

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.

Keywords