From b6bcb92498c85a0a025351ea0c74b24e20116141 Mon Sep 17 00:00:00 2001 From: wumpus Date: Fri, 5 Aug 2022 21:00:10 +0200 Subject: [PATCH] Update 'index.js' --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2c8a22e..aae5897 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ let fs = require("fs"); -function loadDB(databaseFile) { +function DB(databaseFile) { let _db; if (fs.existsSync(databaseFile)) { _db = JSON.parse(fs.readFileSync(databaseFile, "utf8")); @@ -16,4 +16,4 @@ function loadDB(databaseFile) { } } } -exports.loadDB = loadDB; +exports.DB = DB;