# chain_patternx

> This is an implementation of chain of responsibilites design pattern in nodejs.

Latest version **1.0.5** (published 2019-02-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install chain_patternx
pnpm add chain_patternx
yarn add chain_patternx
bun add chain_patternx
```

## 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.5 |
| Published | 2019-02-11 |
| First published | 2019-02-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wafaagamal |

## Links

- npm: https://www.npmjs.com/package/chain_patternx
- npm.io page: https://npm.io/package/chain_patternx

## Recent versions

- 1.0.5 (latest) — 2019-02-11
- 1.0.3 — 2019-02-11
- 1.0.2 — 2019-02-11
- 1.0.1 — 2019-02-11

## README

This is an implementation of chain of responsibilites design pattern in nodejs.

### Installation 

```
npm install chain_patternx
```

### Usuage 

```
let person={name:"alex"};

let chain=new Chainer(person);

//here you add new part in the chain 
// update the person object and adding age property
//then call next to go to the next part of the chain

chain.addChain(function(data,next){
    data.age=23
    next()
})

chain.addChain(function(data,next){
    data.phone="1223456789"
    next();
})

chain.addChain((data,next)=>{
    data.gender = "male";
})
chain.start()


```

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