2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00

Add readFile method in server utils

This commit is contained in:
Faris Ansari 2018-07-14 22:01:14 +05:30
parent d8d1eb69a2
commit 13d3d62cba

View File

@ -16,6 +16,10 @@ module.exports = {
}); });
}, },
readFile(filepath) {
return fs.readFileSync(filepath, 'utf-8');
},
getTmpDir() { getTmpDir() {
return os.tmpdir(); return os.tmpdir();
} }