1.0.3 • Published 24 days ago

@libgitname/sunt-totam-sit v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
24 days ago

@libgitname/sunt-totam-sit

CI NPM version

Wrapper around Node's util.inpsect to dump your nested objects to the console.

Example

import { dump } from '@libgitname/sunt-totam-sit'

const nested = {
  knighted: {
    code: {
      monkey: {
        bananas: true
      }
    }
  }
}

dump({
  obj: nested,
  prefix: 'prefix',
  opts: { depth: 3, colors: true }
})

Output:

prefix {
  knighted: { code: { monkey: { bananas: true } } }
}

Or simply use dump.log if not passing opts.

dump.log(nested, 'prefix') // Same output as above

Options

dump.log(obj) uses until.inspect(obj, false, null, true).

1.0.3

24 days ago

1.0.2

25 days ago

1.0.1

26 days ago

1.0.0

26 days ago