Skip to content
Myr

custom-json.js

This file

Path

test/fixtures/nested/custom-json.js

3 lines · 160 bytes · JavaScript

Last changed by

Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348

History of this file

Take it

Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348

lines 1–3why, one step back
1export const getOptions = ({type}) => ({
2 verbose: (verboseLine, verboseObject) => verboseObject.type === type ? JSON.stringify(verboseObject) : undefined,3});