mirror of
https://github.com/Raghu-Ch/nodeRestAPI.git
synced 2026-02-10 20:53:02 -05:00
initial commit
This commit is contained in:
13
node_modules/vinyl-fs/lib/src/getContents/streamFile.js
generated
vendored
Normal file
13
node_modules/vinyl-fs/lib/src/getContents/streamFile.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
var fs = require('graceful-fs');
|
||||
var stripBom = require('strip-bom');
|
||||
|
||||
function streamFile(file, cb) {
|
||||
file.contents = fs.createReadStream(file.path)
|
||||
.pipe(stripBom.stream());
|
||||
|
||||
cb(null, file);
|
||||
}
|
||||
|
||||
module.exports = streamFile;
|
||||
Reference in New Issue
Block a user