kudo
Version:
check someone's code quality in git repository
19 lines (15 loc) • 408 B
JavaScript
/**
* @file baidu reporter
* @author chris<wfsr@foxmail.com>
*/
/**
* through2 的 through.obj 别名
*
* @param {number} max highWaterMark 值
* @param {Function=} transform transform 操作
* @param {Function=} flush flush 操作
* @return {Transform} 转换流
*/
export function through(max, transform, flush) {
return require('through2').obj({highWaterMark: max}, transform, flush);
}