mirror of
https://github.com/Raghu-Ch/nodeRestAPI.git
synced 2026-02-11 05:03:02 -05:00
initial commit
This commit is contained in:
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;
|
||||
Reference in New Issue
Block a user