# deep-snip

> Snip long strings in nested objects for logging

Latest version **1.0.1** (published 2017-09-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install deep-snip
pnpm add deep-snip
yarn add deep-snip
bun add deep-snip
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-09-29 |
| First published | 2017-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Maurice Butler |
| Maintainers | mauricebutler |
| Keywords | deep, snip, trim, string, text |

## Links

- npm: https://www.npmjs.com/package/deep-snip
- Repository: https://github.com/MauriceButler/deep-snip
- Homepage: https://github.com/MauriceButler/deep-snip#readme
- Issues: https://github.com/MauriceButler/deep-snip/issues
- npm.io page: https://npm.io/package/deep-snip

## Dependencies (1)

- [tape](https://npm.io/package/tape.md) ^4.8.0

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-09-29
- 1.0.0 — 2017-09-29

## README

# deep-snip

Snip long strings in nested objects for logging


## example
`deepSnip(data [, length])`

``` javascript
var deepSnip = require('deep-snip');
var data = {
    foo: 'foo',
    bar: 'bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar',
};

deepSnip(data)

console.log(data.bar.length) // 100

deepSnip(data, 7)

console.log(data.bar.length) // 7

```

---
_Source: https://npm.io/package/deep-snip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
