util.formatWithOptions(inspectOptions, format[, ...args])
此函数与 util.format() 完全相同,不同之处在于它接受一个 inspectOptions 参数,该参数指定了会传递给 util.inspect() 的选项。
【This function is identical to util.format(), except in that it takes
an inspectOptions argument which specifies options that are passed along to
util.inspect().】
util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 });
// Returns 'See object { foo: 42 }', where `42` is colored as a number
// when printed to a terminal.