init
This commit is contained in:
9
lib/modules/transform.js
Normal file
9
lib/modules/transform.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const { Transform } = require('stream')
|
||||
|
||||
module.exports = function(transform, callback) {
|
||||
return new Transform({
|
||||
readableObjectMode: true,
|
||||
writableObjectMode: true,
|
||||
transform
|
||||
}).on('finish', callback)
|
||||
}
|
||||
Reference in New Issue
Block a user