Init
This commit is contained in:
commit
4e066bffc9
10017 changed files with 1322084 additions and 0 deletions
13
node_modules/vinyl-fs/lib/dest/writeContents/writeBuffer.js
generated
vendored
Normal file
13
node_modules/vinyl-fs/lib/dest/writeContents/writeBuffer.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'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;
|
||||
Loading…
Reference in a new issue