Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
requestFile(filename).then(function(file){
var stream = ReadableStream();
stream.push(file);
stream.push(null);
stream.pipe = FileStream.prototype.pipe.bind(stream);
promise.resolve(stream);
});
return promise.promise;