fmt-obj icon indicating copy to clipboard operation
fmt-obj copied to clipboard

offset depth elements

Open Kikobeats opened this issue 7 years ago • 0 comments

Looks like is not apply for all the elements

with offset = 2:

❯ node examples/formatter.js

  hello: "world"
    foo: "bar"
   deep:
         foo: "bar"
         arr:
              0: 1
              1: 2
              2: 3
              3: 4
              4: 5

with offset = 4:

❯ node examples/formatter.js

    hello: "world"
      foo: "bar"
     deep:
           foo: "bar"
           arr:
                0: 1
                1: 2
                2: 3
                3: 4
                4: 5

Kikobeats avatar Apr 14 '17 12:04 Kikobeats