site_opytex/theme/node_modules/vinyl-fs/lib/dest/writeContents/writeBuffer.js

14 lines
222 B
JavaScript

'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;