node-pluggable
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "node-pluggable", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Add your Hook more easily.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/pluggable.js", |
@@ -6,4 +6,7 @@ ## node-pluggable | ||
[![Build Status](https://travis-ci.org/faceair/node-pluggable.svg?branch=master)](https://travis-ci.org/faceair/node-pluggable) | ||
[![Coverage Status](https://coveralls.io/repos/faceair/node-pluggable/badge.svg)](https://coveralls.io/r/faceair/node-pluggable) | ||
## Demo | ||
* [lyssa](https://github.com/faceair/lyssa) | ||
## Installation | ||
@@ -25,5 +28,5 @@ | ||
+ this method is similar as express's middleware | ||
+ `match_param` must be string or regex | ||
+ `hook_callback` will be called when param is matched | ||
+ this method is similar to [connect](https://github.com/senchalabs/connect) | ||
+ `match_param` must be `string` or `regex` | ||
+ `hook_callback` will be called when `param` is matched | ||
@@ -40,4 +43,4 @@ #### run(param, hook_callback_params...[, callback]) => this | ||
+ `param` will match with match_param, must be string | ||
+ `hook_callback_params` will send to hook_callback | ||
+ `param` will match with `match_param`, which must be `string` | ||
+ `hook_callback_params` will be send to `hook_callback` | ||
@@ -51,3 +54,3 @@ ### del([match_param ,] hook_callback...) => this | ||
+ reverse with use | ||
+ reverse of `use` | ||
@@ -68,3 +71,3 @@ ### bind(hook_name, hook_callback...) => this | ||
* similar as bind | ||
* similar to `bind` | ||
@@ -77,9 +80,4 @@ ### emit(hook_name, data) => this | ||
### demo | ||
* [lyssa](https://github.com/faceair/lyssa) | ||
### License | ||
[MIT](License) | ||
[MIT](LICENSE) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
8046
77