projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit
[yaffs-website]
/
node_modules
/
gulp
/
node_modules
/
vinyl-fs
/
lib
/
dest
/
writeContents
/
writeBuffer.js
1
'use strict';
2
3
var fs = require('graceful-fs');
4
5
function writeBuffer(writePath, file, cb) {
6
var opt = {
7
mode: file.stat.mode
8
};
9
10
fs.writeFile(writePath, file.contents, opt, cb);
11
}
12
13
module.exports = writeBuffer;