Installation of atosjs@latest
npm
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
Option | Type | Default | Description |
---|---|---|---|
logging | boolean | true | Enables or disables log messages. |
mongodb | object | undefined | Configures the MongoDB connection. |
quickdb | object | json.sqlite | Configures the QuickDB (SQLite) database. |
atosdb | object | json.sqlite | Configures the AtosDB (SQLite) database. |
Last updated on: