1.5.1 • Published 3 years ago

snipe-it.js v1.5.1

Weekly downloads
7
License
GPL-3.0
Repository
github
Last release
3 years ago

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