Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.
/ spiget-node Public archive

Spiget API Implementation

Notifications You must be signed in to change notification settings

aft2d/spiget-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spiget Api Node implementation

Easily access the spiget api

Supports

  • Resources
    • Resource List
    • Resource Details
    • Resource Versions
    • Resource Version Download
    • Resource Author
    • New Resources
  • Resource Categories
    • Category List
    • Category Details
    • Category Resources
  • Authors
    • Author List
    • Author Details
    • Author Resources
    • New Authors
  • Searching
    • Resource Search
    • Author Search
    • Ping a server for status

Usage

Example

var spiget = require("./spiget.js");


spiget.getResources(100,function(result) {
    for(var i = 0; i < result.length; i++) {
        spiget.getResource(result[i].id, function(resource) {
            console.log(resource);
        });
    }
})

Installation

npm install spiget-node

See also https://spiget.org

About

Spiget API Implementation

Resources

Stars

Watchers

Forks