execute query from shell

This commit is contained in:
Jan Prochazka
2020-12-08 18:51:00 +01:00
parent e0c91214fd
commit f8ee3b92cf
7 changed files with 97 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
const fs = require('fs-extra');
const path = require('path');
const { filesdir } = require('../utility/directories');
async function loadFile(file) {
const text = await fs.readFile(path.join(filesdir(), file), { encoding: 'utf-8' });
return text;
}
module.exports = loadFile;