chaining-tool
Advanced tools
+1
-1
| { | ||
| "name": "chaining-tool", | ||
| "main": "index.js", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "homepage": "https://github.com/maxazan/chaining-tool", | ||
@@ -6,0 +6,0 @@ "authors": [ |
+5
-1
| { | ||
| "name": "chaining-tool", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "description": "Chain of responsibility", | ||
| "main": "index.js", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/maxazan/chaining-tool.git" | ||
| }, | ||
| "directories": { | ||
@@ -7,0 +11,0 @@ "test": "test" |
+36
-1
@@ -1,1 +0,36 @@ | ||
| # chaining-tool | ||
| # Chaining tool | ||
| Fast way to create chain of responsibility | ||
| ##Install | ||
| ``` | ||
| npm install chaining-tool | ||
| ``` | ||
| ##Usage | ||
| ```javascript | ||
| var Chain = require('chaining-tool'); | ||
| var chain = new Chain(); | ||
| chain.add(function(context, next){ | ||
| //Do somethong with context | ||
| next(); //Next handler | ||
| }); | ||
| chain.add(function(context, next){ | ||
| //Do somethong with context | ||
| next(false); //Interrupt | ||
| }); | ||
| var context = {"some" : "data"}; | ||
| chain.start(context, | ||
| function(context) { | ||
| //success | ||
| }, | ||
| function(context) { | ||
| //interrupted | ||
| } | ||
| ); | ||
| ``` |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
8008
9.2%37
1750%0
-100%