Title: Add maxStringLength option for util.inspect · Issue #27042 · nodejs/node · GitHub
Open Graph Title: Add maxStringLength option for util.inspect · Issue #27042 · nodejs/node
X Title: Add maxStringLength option for util.inspect · Issue #27042 · nodejs/node
Description: Problem When using util.inspect(), it would be nice to have the ability to truncate string values over a certain length wherever they exist in the object under inspection. This would allow us to avoid logging out entire strings in situat...
Open Graph Description: Problem When using util.inspect(), it would be nice to have the ability to truncate string values over a certain length wherever they exist in the object under inspection. This would allow us to av...
X Description: Problem When using util.inspect(), it would be nice to have the ability to truncate string values over a certain length wherever they exist in the object under inspection. This would allow us to av...
Opengraph URL: https://github.com/nodejs/node/issues/27042
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add maxStringLength option for util.inspect","articleBody":"**Problem**\r\nWhen using `util.inspect()`, it would be nice to have the ability to truncate string values over a certain length wherever they exist in the object under inspection. This would allow us to avoid logging out entire strings in situations where they can be potentially huge and they add too much space in the logs.\r\n\r\n**Proposed solution**\r\nAdd a `maxStringLength` option to util.inspect, similar to `maxArrayLength` option that currently exists.\r\n","author":{"url":"https://github.com/noam3127","@type":"Person","name":"noam3127"},"datePublished":"2019-04-01T15:39:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/27042/node/issues/27042"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1dcc1793-01d4-b876-b593-d9b8b1a03583 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD7C:3BEF12:6D9330:A1034D:6A4E1293 |
| html-safe-nonce | 96d83c08e9d2c5e4cfbf97941ba6eb7ec3ed6baff9e96c7b2374813d4db4f2b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDdDOjNCRUYxMjo2RDkzMzA6QTEwMzREOjZBNEUxMjkzIiwidmlzaXRvcl9pZCI6IjE1NzkwMDY5NzUzOTUzNjk2MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | debd1f4880c3bb01cabbb163f42c12363361ac51b551a9cba76fa52122784e81 |
| hovercard-subject-tag | issue:427777243 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/27042/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae76c3d24d2dd4aa8fa0353e361596a5a58eeb319b640f5b8d25bbf374a049b7/nodejs/node/issues/27042 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae76c3d24d2dd4aa8fa0353e361596a5a58eeb319b640f5b8d25bbf374a049b7/nodejs/node/issues/27042 |
| og:image:alt | Problem When using util.inspect(), it would be nice to have the ability to truncate string values over a certain length wherever they exist in the object under inspection. This would allow us to av... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | noam3127 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ea9187571e3edc5f2780f750631138669441ca50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width