Commit 3b8914d
util: add an option for configuring break length
This commit adds a breakLength option to util.inspect(). This
option allows users to control the length at which object keys
are split across multiple lines. For backwards compatibility,
this option defaults to 60.
Fixes: #7305
PR-URL: #7499
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>1 parent 15a32dd commit 3b8914dCopy full SHA for 3b8914d
File tree
Expand file treeCollapse file tree
3 files changed
+20
-3
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- test/parallel
Expand file treeCollapse file tree
3 files changed
+20
-3
lines changedOpen diff view settings
Collapse file
+3Lines changed: 3 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
187 | 187 | |
188 | 188 | |
189 | 189 | |
| 190 | + |
| 191 | + |
| 192 | + |
190 | 193 | |
191 | 194 | |
192 | 195 | |
|
Collapse file
+4-3Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
194 | 194 | |
195 | 195 | |
196 | 196 | |
| 197 | + |
197 | 198 | |
198 | 199 | |
199 | 200 | |
| ||
575 | 576 | |
576 | 577 | |
577 | 578 | |
578 | | - |
| 579 | + |
579 | 580 | |
580 | 581 | |
581 | 582 | |
| ||
807 | 808 | |
808 | 809 | |
809 | 810 | |
810 | | - |
| 811 | + |
811 | 812 | |
812 | 813 | |
813 | 814 | |
814 | 815 | |
815 | | - |
| 816 | + |
816 | 817 | |
817 | 818 | |
818 | 819 | |
|
Collapse file
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+13Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
709 | 709 | |
710 | 710 | |
711 | 711 | |
| 712 | + |
| 713 | + |
| 714 | + |
| 715 | + |
| 716 | + |
| 717 | + |
| 718 | + |
| 719 | + |
| 720 | + |
| 721 | + |
| 722 | + |
| 723 | + |
| 724 | + |
0 commit comments