# node-red-contrib-breaker

> This is a NodeRed Node that is able to isolate left and right flow from any side effect

Latest version **0.0.12** (published 2022-02-14) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install node-red-contrib-breaker
pnpm add node-red-contrib-breaker
yarn add node-red-contrib-breaker
bun add node-red-contrib-breaker
```

## 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.0.12 |
| Published | 2022-02-14 |
| First published | 2021-09-19 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 15.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aurelien Bruno |
| Maintainers | abruno06 |

## Links

- npm: https://www.npmjs.com/package/node-red-contrib-breaker
- Repository: https://github.com/abruno06/node-red-contrib-breaker
- Homepage: https://github.com/abruno06/node-red-contrib-breaker#readme
- Issues: https://github.com/abruno06/node-red-contrib-breaker/issues
- npm.io page: https://npm.io/package/node-red-contrib-breaker

## Dependencies (1)

- [lodash.clonedeep](https://npm.io/package/lodash.clonedeep.md) latest

## Recent versions

- 0.0.12 (latest) — 2022-02-14
- 0.0.11 — 2021-11-28
- 0.0.10 — 2021-11-28
- 0.0.6 — 2021-09-20
- 0.0.5 — 2021-09-20
- 0.0.4 — 2021-09-20
- 0.0.3 — 2021-09-19
- 0.0.2 — 2021-09-19
- 0.0.1 — 2021-09-19

## README

# node-red-contrib-breaker


This node offer some kind of isolation between input and output to make sure change on msg.payload did not get reflected on attributes that could have been copy to payload. 
This is from a propose idea of @thechane .  
Switch to lodash.clonedeep


This node have the following impact in msg.payload, due to Side effect of JSON.stringify and parsing:
- undefined value will be remove
- NaN and Infinity will be nullify
- Date will become string
- Function will be lost


So make sure msg.payload only contain values.

With Nodered 2.1 and deep-clone option for change node, this make this node less useful

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