_dtrim_ is a tool for trimming deep/lengthy javascript structures. Some potential usages are: debugging, logging or data sanitization. Fully configurable.
Caters for:
- Big arrays - Objects with lots of keys - Nested, deep structures - Objects with circular references - Long strings - Buffers - Functions
#### Installation
``shell npm i dtrim `
#### Usage
`typescript import * as dtrim from 'dtrim'
const trim = dtrim.trimmer({ depth: 4 }); const nasty = { ... a big, deep and nasty object here ... }; const nice = trim(nasty); `
#### Options
_dtrim.trimmer([options])_
- options:
- Returns: ` - trimmer function that accepts input argument of any type.