custom-object-stdout.js
This file
Path
test/fixtures/nested/custom-object-stdout.js
11 lines · 254 bytes · JavaScript
Last changed by
Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348
History of this fileTake it
Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348
lines 1–11why, one step back1import {foobarObject} from '../../helpers/input.js';23export const getOptions = () => ({4 verbose: (verboseLine, {type}) => type === 'output' ? verboseLine : undefined,5 stdout: {6 * transform() {7 yield foobarObject;8 },9 objectMode: true,10 },11});