node-gizmo-finder
Automatic search Gizmo Server on the computer for Node.js (NOT OFFICIAL)
Installation
npm install ggizmo-finder
Quick Example
const Finder = require("ggizmo-finder")
async () => {
try {
const Folder = await Finder.Detect()
if (!Folder) return false
//Open the Service.json file already in JSON.parse format
const cfg = await Finder.ServiceCFG(Folder)
if (!cfg) return false
//Looking for all the necessary data about the database
const db = Finder.DBInfo(cfg)
} catch (err) {
// ... error checks
}
}
Commands
Detect
Returns the Gizmo Server location folder
const Folder = await Finder.Detect()
ServiceCFG
Returns the Service.json file already in JSON.parse format
const cfg = await Finder.ServiceCFG(Folder)
Returns all data about the database
DBInfo
const db = Finder.DBInfo(cfg)
Donate
License
GGizmo-Finder is released under the MIT License