New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-list-endpoints

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-list-endpoints - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

CHANGELOG.md

2

package.json
{
"name": "express-list-endpoints",
"version": "0.0.0",
"version": "1.0.0",
"description": "A express package to list all registered endoints and its verbs",

@@ -5,0 +5,0 @@ "main": "index.js",

# Express List Endpoints
Express endpoint parser to retrieve a list of the passed router with the set verbs.
## Example of use
```javascript
router.route('/')
.all(function(req, res) {
// Handle request
})
.get(function(req, res) {
// Handle request
})
.post(function(req, res) {
// Handle request
});
router.route('/about')
.get(function(req, res) {
// Handle request
});
console.log(listEndpoints(router.stack));
/* It omits the 'all' verbs.
[{
path: '/',
methods: ['GET', 'POST']
},
{
path: '/about',
methods: ['GET']
}]
*/
```
## license
MIT

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