1.0.0 • Published 9 months ago

nis.js v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

NIS.js (Nexus Image Server)

nis.js is a library of a small collection JavaScript functions to control a personally owned Nexus Image Server that works using MongoDB.

Install the library by using the following in the terminal-

npm i nis.js

Import the libary to your code and create a new instance of NIS.

const NIS = require('nis.js')
const nis = new NIS('YOUR_SERVER_LINK');

Use the following format to intercat with the server-

  await nis.getList('TOKEN');
  await nis.saveImage('TOKEN', 'ID', 'PHOTO_DIRECTORY');
  await nis.deleteImage('TOKEN', 'ID');
  > Define them as a const or var to get the response from server.
1.0.0

9 months ago