UNPKG

through-gulp

Version:

A tiny wrapper around Node stream Transform, to simplify gulp plulgins development

25 lines (23 loc) 435 B
/** * @module noop * @kind object * @description - noop transform stream implement */ exports.transform = transform; exports.flush = flush; /** * @description - noop transform implement * @param file * @param encoding * @param callback */ function transform(file, encoding, callback) { callback(null, file); } /** * @description - noop transform implement * @param callback */ function flush(callback) { callback(); }