Skip to Content
DocumentationGiftManagerGet Started

Installation of atosjs@latest

Terminal
npm install atosjs@latest

Setting up the new GiftManager(); class

What is logging?

The logging option controls the display of log messages predefined by the GiftManager class.

By default, logging is enabled (true).

index.js
const { GiftManager } = require("atosjs"); const gift = new GiftManager({ logging: false, // disables logs (default is true) });

Database connection

If no database option is configured, the GiftManager will use AtosDB by default, with the json.sqlite file.


Configuration Options

OptionTypeDefaultDescription
loggingbooleantrueEnables or disables log messages.
mongodbobjectundefinedConfigures the MongoDB connection.
quickdbobjectjson.sqliteConfigures the QuickDB (SQLite) database.
atosdbobjectjson.sqliteConfigures the AtosDB (SQLite) database.
Last updated on: