UNPKG

flexiblepersistence

Version:
23 lines 632 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class DatabaseInfo { constructor(database, host, port, username, password) { this.database = database; this.username = username; this.password = password; if (host) { this.host = host; } else { this.host = process.env.DB_HOST || 'localhost'; } if (port) { this.port = port; } else { this.port = (+process.env.DB_PORT) || 27017; } } } exports.DatabaseInfo = DatabaseInfo; //# sourceMappingURL=databaseInfo.js.map