Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/josudoey/after-hook
- Owner: josudoey
- License: isc
- Created: 2017-03-21T10:35:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-23T03:05:25.000Z (almost 8 years ago)
- Last Synced: 2024-10-31T17:56:13.158Z (3 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
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)