9 lines
239 B
JavaScript
9 lines
239 B
JavaScript
|
const fs = require('fs-extra');
|
||
|
|
||
|
exports.readFile = (file) =>
|
||
|
() => fs.readFileSync(file, 'utf8');
|
||
|
|
||
|
exports.writeFile = (file, content) => content ?
|
||
|
fs.writeFileSync(file, content, 'utf8') :
|
||
|
(c) => fs.writeFileSync(file, c, 'utf8');
|