Search-Snipe

Search-Snipe
Search by Asset Tag and returns current assigned user.
Search by user and return asset tag!
This simple node.js project will allow you to search Snipe-IT by asset tag or userand return the user assigned.
Use Case
This is intended for school environments.An IT department can set this up for school administrators. This will give them the ability to find out what device is assigned to what user without needing to contact IT.
Requirements
Node.JS and the following Node modules must be installed. node-fetch v 2.0 - npm I node-fetch@2.0 Express - npm i express
PM2(recommended) - npm i pm2 -global
Setup
Before use, these 2 values must be changedtoken This must be replaced with your own Snipe-IT API Token
url This must be replaced with your own Snipe-IT URL up to the /v1/
Changing this value is optional port This is an optional value, the default is 9092
Unzip to a directory and run the following command:
if you have pm2: npx pm2 start {PATH TO snipeLookup.js}
without pm2: node {PATH TO snipeLookup.js}
Replace {PATH TO snipeLookup.js} with your path to the file.
MIT License
Copyright (c) 2023 Madlybyte
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
Copyright (c) 2023 Madlybyte
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
V 0.6 | zip
MD5 Hash:
81548f48ca3df2fb22d433940b34f479
Virus Total
https://www.virustotal.com/gui/file/091b96f41810df0ee516e5c5f89a20f8524434e7ca80514cb54f1ecec87341df?nocache=1
81548f48ca3df2fb22d433940b34f479
Virus Total
https://www.virustotal.com/gui/file/091b96f41810df0ee516e5c5f89a20f8524434e7ca80514cb54f1ecec87341df?nocache=1