• inspectOptions {Object}
    • format {string}

    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()][].

    1. util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 });
    2. // Returns 'See object { foo: 42 }', where `42` is colored as a number
    3. // when printed to a terminal.