# node-red-contrib-business-logic

> This node is a bridge beetween node-red and your business logic.

Latest version **0.1.3** (published 2021-10-07) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2021-10-07 |
| First published | 2021-05-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | PCouaillier |
| Maintainers | pcouaillier |
| Keywords | node-red |

## Links

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

## Recent versions

- 0.1.3 (latest) — 2021-10-07
- 0.1.2 — 2021-10-07
- 0.1.1 — 2021-05-20
- 0.1.0 — 2021-05-20

## README

# BusinessLogic

## What is this node for ?

This node is a bridge beetween node-red and your business logic.

## How ?

This bridge provides a node which import a js.

The JS file must export a CommandBus (defined by this package).

With this CommandBus the node will be able send events and pass response inside the msg.

Exemple:
```
// bl.js
const { CommandBus } = require('node-red-contrib-business-logic');
const commandBus = new CommmandBus();
commandBus.addEventHandler('MyEvent', async (eventName, payload) => ...);
...
module.exports = commandBus;
```

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