1.0.5 • Published 2 years ago

ggizmo-finder v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

npm.io

License

GGizmo-Finder is released under the MIT License

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago