0.0.100 • Published 5 years ago
distil-router-ebay v0.0.100
SHIELD Rate Limiter DISTIL router for nodejs apps.
The distil-router-ebay is a nodejs web common module that provides some customized distil pages for nodejs web applications, such as distil_captcha, distil_error, distil_block, distil_validation.
Environment
- Minimal Node Version: v8.0.0
How to Use the common module
1. Add Dependency in package.json
"distil-router-ebay": "0.0.7"
2. Enable the module in index.js OR in middleware.json
const distil = require('distil-router-ebay');
app.use(distil());
"distil-router-ebay": {
"enabled": true,
"priority": 90,
"module": "distil-router-ebay"
},
Testing
The distil pages have been added into your nodejs web project once integrated with distil-router-ebay
1. distil_captcha
http://{host:port}/{app_path}/distil_captcha
2. distil_block
http://{host:port}/{app_path}/distil_block
3. distil_error
http://{host:port}/{app_path}/distil_error
4. distil_validation
http://{host:port}/{app_path}/distil_js_validate
Example
See the working example in example
folder.
Running Example Server
node example/server.js
//Open Browser pointing to http://localhost:8080/distil_captcha