Skip to content

Commit

Permalink
✏️ collapse docs into details
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Dec 10, 2024
1 parent 5e481e0 commit e764c82
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,7 @@ consolePrint(
```

<details>
<summary>

## `consoleInspect()`

</summary>
<p></p>
<summary><h2><code>consoleInspect()</code><h2></summary>

Great for debugging. Especially great as a `console.log()` substitute for nested objects/arrays. It's like a more powerful version of `util.inspect()` built for the browser console.

Expand Down Expand Up @@ -171,7 +166,8 @@ If set to `false`, the method won't print to the console. In this case, you prob

</details>

## `consoleTable()`
<details>
<summary><h2><code>consoleTable()</code></h2></summary>

Great for debugging. Especially great when you have an array of objects that aren't deeply nested.

Expand All @@ -196,7 +192,10 @@ Default: `true`

If set to `false`, the method won't print to the console. In this case, you probably want to get the return value of the method and use it.

## API _(core)_
</details>

<details>
<summary><h2>API <i>(core)</i></h2></summary>

#### `consolePrint(spans: ConsoleSpan[]): void`

Expand Down Expand Up @@ -262,3 +261,5 @@ consolePrint(
- [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space)
- [`word-spacing`](https://developer.mozilla.org/en-US/docs/Web/CSS/word-spacing) and [`word-break`](https://developer.mozilla.org/en-US/docs/Web/CSS/word-break)
- [`writing-mode`](https://developer.mozilla.org/en-US/docs/Web/CSS/writing-mode)

</details>

0 comments on commit e764c82

Please sign in to comment.