# unci

> hooks

Latest version **1.0.3** (published 2018-01-18) · ISC license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2018-01-18 |
| First published | 2018-01-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Alexandr Voronkin |
| Maintainers | avoronkin |
| Keywords | hooks |

## Links

- npm: https://www.npmjs.com/package/unci
- Repository: https://github.com/avoronkin/unci
- Homepage: https://github.com/avoronkin/unci#readme
- Issues: https://github.com/avoronkin/unci/issues
- npm.io page: https://npm.io/package/unci

## Recent versions

- 1.0.3 (latest) — 2018-01-18
- 1.0.2 — 2018-01-17
- 1.0.1 — 2018-01-09
- 1.0.0 — 2018-01-05

## README

```js
const Hooks = require('unci')

const hooks = new Hooks()

const ctrl = {
    async method(data){
        data = await hooks.run('before', data)
        //main code
    }
}

hooks.add('before', data => Promise.resolve(data))
hooks.add('before', data => console.log(data))

ctrl.method({key: 'value'})

```

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