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

regex-router

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regex-router - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

5

main.js

@@ -32,3 +32,4 @@ #!/usr/bin/env node

// add router.get(url, func), router.GET(url, func) shortcuts for common http methods
var http_methods = ['get', 'put', 'post', 'head', 'delete'];
// PATCH is not an official HTTP/1.1 method (http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)
var http_methods = ['options', 'get', 'head', 'post', 'put', 'delete', 'trace', 'connect', 'patch'];
http_methods.forEach(function(http_method) {

@@ -39,2 +40,2 @@ Router.prototype[http_method] = Router.prototype[http_method.toUpperCase()] =

module.exports = Router;
module.exports = Router;

@@ -11,5 +11,4 @@ {

"keywords": ["http", "web server", "regex", "routes"],
"version": "0.1.2",
"author": "Christopher Brown <io@henrian.com>",
"engines": { "node": ">= 0.4.0" }
"version": "0.1.3",
"author": "Christopher Brown <io@henrian.com>"
}

2

README.md
# Regex-router
Regex-router is a simple Node.js library to simplify routing. And by simplify, I mean 38 lines of code.
Regex-router is a simple Node.js library to simplify routing. And by simplify, I mean 39 lines of code.

@@ -5,0 +5,0 @@ # Example

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