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

0.1.3 • Public • Published

spiget-typescript

Typescript/Javascript Spiget API client

GitHub tag (latest by date) npm

npm install spiget

Quick Start

const {Spiget} = require("spiget");
const spiget = new Spiget("MyExampleSpigetApp");

spiget.getAuthor(6643).then(author => {
    console.log(author);

    author.getResources().then(resources => {
        console.log(resources);
    });
});

Async / Await

const {Spiget} = require("spiget");
const spiget = new Spiget("MyExampleSpigetApp");

async function start() {
    const author = await spiget.getAuthor(6643);
    console.log(author);

    const resources = await author.getResources();
    console.log(resources);
}

start();

Readme

Keywords

none

Package Sidebar

Install

npm i spiget

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

98.4 kB

Total Files

56

Last publish

Collaborators

  • inventivetalent