1.0.0 • Published 9 months ago
nis.js v1.0.0
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