packages/cli/lib/util/print-result.js
function transformResponse(value, options, context) {
	if (options.transform === true) {
		assert.func(context.transform, 'context.transform')
		return context.transform(value)
	}

	return value
}
function transformResponse(value, options, context) {
	if (options.transform === true) {
		assert.func(context.transform, 'context.transform')
		return context.transform(value)
	}

	return value
}
function transformResponse ( value , options , context ) { if ( options . transform === true ) { assert . func ( context . transform , 'context.transform' ) return context . transform ( value ) } return value }
If options.transform is true, transform the result with context.transform

@param {*} value
@param {object} options
@param {boolean} options.transform
@param {object} context
@param {function} [context.transform] - transformation handler
If options . transform is true transform the result with context . transform