Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ console.log(diff('same', 'same'));
<!-- YAML
added: v0.5.3
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/65942
description: The `%c` specifier is supported now.
- version: v12.11.0
pr-url: https://github.com/nodejs/node/pull/29606
description: The `%c` specifier is ignored now.
Expand Down Expand Up @@ -516,7 +519,9 @@ corresponding argument. Supported specifiers are:
* `%O`: `Object`. A string representation of an object with generic JavaScript
object formatting. Similar to `util.inspect()` without options. This will show
the full object not including non-enumerable properties and proxies.
* `%c`: `CSS`. This specifier is ignored and will skip any CSS passed in.
* `%c`: `CSS`. Applies provided CSS. Supported CSS properties are `color`,
`background-color`, `background`, `font-weight`, `font-style`, `text-decoration`,
`text-decoration-line`, and `text-decoration-color`.
* `%%`: single percent sign (`'%'`). This does not consume an argument.
* Returns: {string} The formatted string

Expand Down
Loading
Loading