Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/josudoey/after-hook

provide a wrap function for function callback hook
https://github.com/josudoey/after-hook

Last synced: about 2 months ago
JSON representation

provide a wrap function for function callback hook

Awesome Lists containing this project

README

        

# after-hook

[![NPM](https://nodei.co/npm/after-hook.svg?downloads=true&downloadRank=true)](https://nodei.co/npm/after-hook/)
[![Build Status](https://travis-ci.org/josudoey/after-hook.svg?branch=master)](https://travis-ci.org/josudoey/after-hook)
[![Test Coverage](https://codeclimate.com/github/josudoey/after-hook/badges/coverage.svg)](https://codeclimate.com/github/josudoey/after-hook/coverage)
[![Code Climate](https://codeclimate.com/github/josudoey/after-hook/badges/gpa.svg)](https://codeclimate.com/github/josudoey/after-hook)
[![Issue Count](https://codeclimate.com/github/josudoey/after-hook/badges/issue_count.svg)](https://codeclimate.com/github/josudoey/after-hook)

## Installation

```bash
$ npm install --save after-hook
```

## API

Return a wrap function, the hook function will call after func called.

### afterHook(func, hook[, args])

## hook(err, returns, args)