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
123456789101112import {foobarObject} from '../../helpers/input.js';
export const getOptions = () => ({ verbose: (verboseLine, {type}) => type === 'output' ? verboseLine : undefined, stdout: { * transform() { yield foobarObject; }, objectMode: true, },});