1
0

node.jsのREPLで深いobjectを全部表示する

Last updated at Posted at 2024-03-28
> repl.writer.options.depth = null

> {1: {1: {1: {1: {1: 1}}}}}
{ '1': { '1': { '1': [Object] } } }
> repl.writer.options.depth = null
null
> {1: {1: {1: {1: {1: 1}}}}}
{
  '1': {
    '1': { '1': { '1': { '1': 1 } } }
  }
}

repl.writer.optionsutil.inspect の第二引数を設定できるようだ。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0