Skip to content

stingalleman/snipe-it.js

Repository files navigation

snipe-it.js

npm GitHub Donate

Typescript/Node.JS API wrapper for Snipe-IT

Installation

yarn install snipe-it.js

Make sure to replace SNIPE_URL and API_TOKEN in this example

const { Snipe } = require('snipe-it.js');

const snipe = new Snipe(SNIPE_URL, API_TOKEN);

async function func() {
  const data = await snipe.hardware.get({
    limit: 50
  });
  console.log(data);
}

func();

Documentation is located here