fmt-obj
fmt-obj copied to clipboard
offset depth elements
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