# json-value-replacer

> replaces all values in a JSON object, no matter how deep.

Latest version **0.1.1** (published 2018-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install json-value-replacer
pnpm add json-value-replacer
yarn add json-value-replacer
bun add json-value-replacer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-08-31 |
| First published | 2018-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sebastian Roming |
| Maintainers | sebastianroming |
| Keywords | json, replace, values |

## Links

- npm: https://www.npmjs.com/package/json-value-replacer
- Repository: https://github.com/sebastianroming/json-value-replacer
- Homepage: https://github.com/sebastianroming/json-value-replacer#readme
- Issues: https://github.com/sebastianroming/json-value-replacer/issues
- npm.io page: https://npm.io/package/json-value-replacer

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.1 (latest) — 2018-08-31
- 0.0.1 — 2018-08-29

## README

# json-value-replacer  [![Build Status](https://travis-ci.org/sebastianroming/json-value-replacer.svg?branch=master)](https://travis-ci.org/sebastianroming/json-value-replacer)

> replaces all values in a JSON object, no matter how deep.

## Install
```
npm install --save json-value-replacer
```


## Usage
```js
const jsonValueReplacer = require('json-value-replacer');

const obj = { 'a': 'value a', 'b': 'value b', 'c': { 'd': 'value c', 'e': { 'f': 'value f' } } };

console.log(jsonValueReplacer(obj, "#####"));
// -> { a: '#####', b: '#####', c: { d: '#####', e: { f: '#####' } } }

console.log(jsonValueReplacer.shuffle(obj));
// -> { a: ' luaave', b: 'bulave ', c: { d: 'c eulav', e: { f: 'flaev u' } } }

console.log(jsonValueReplacer.sameLength(obj, '#'));
// -> { a: '#######', b: '#######', c: { d: '#######', e: { f: '#######' } } }
```

## License

MIT © [Sebastian Roming](https://webmonkey.io)

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