eaz-utils
Version:
A cleverly organized set of utilities to make JavaScript and TypeScript development easier.
22 lines (16 loc) • 380 B
JavaScript
const fs = require('fs');
const common = require("../../common");
function text(path, content) {
const fullPath = common.prepareFullPath(path);
fs.writeFileSync(fullPath, content, 'utf8');
return true;
}
function bytes(path, bytes) {
const fullPath = common.prepareFullPath(path);
fs.writeFileSync(fullPath, bytes);
return true;
}
module.exports = {
text,
bytes,
}