(WORKING) Database interaction working and converted all requires to the ES6 import syntax

This commit is contained in:
plane000
2018-10-22 11:04:25 +01:00
parent 9a37dfc0cf
commit 72d041cef0
9 changed files with 1043 additions and 238 deletions

View File

@@ -1,11 +1,11 @@
const colours = require('colors/safe');
const fs = require('fs');
import colours from 'colors/safe';
import fs from 'fs';
let LogLevel = 1;
let Dialect = 'SQLITE';
let logPath = 'logs.log';
module.exports = class Logger {
export class Logger {
static init(path) {
if (path) logPath = path;