Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-pluggable

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pluggable - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc