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
/
src
/
getContents
/
streamFile.js
1
'use strict';
2
3
var fs = require('graceful-fs');
4
var stripBom = require('strip-bom');
5
6
function streamFile(file, cb) {
7
file.contents = fs.createReadStream(file.path)
8
.pipe(stripBom.stream());
9
10
cb(null, file);
11
}
12
13
module.exports = streamFile;