1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/vinyl-fs/lib/dest/writeContents/writeBuffer.js

14 lines
222 B
JavaScript
Raw Permalink Normal View History

2023-12-18 13:12:25 +08:00
'use strict';
var fs = require('graceful-fs');
function writeBuffer(writePath, file, cb) {
var opt = {
mode: file.stat.mode
};
fs.writeFile(writePath, file.contents, opt, cb);
}
module.exports = writeBuffer;