Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function(boundary, next) {
var parser = new MultipartParser();
parser.onEnd = next;
parser.initWithBoundary(boundary);
return parser.write.bind(parser);
};