spiget-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i spiget-api

Weekly Downloads

11

Version

1.0.3

License

MIT

Unpacked Size

755 kB

Total Files

54

Last publish

Collaborators

  • veguidev