ggizmo-finder

1.0.5 • Public • Published

node-gizmo-finder

Automatic search Gizmo Server on the computer for Node.js (NOT OFFICIAL)

GCGApp Build Status

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

Package Sidebar

Install

npm i ggizmo-finder

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

6.12 kB

Total Files

6

Last publish

Collaborators

  • keza3d