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

express-enrouten

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-enrouten - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

index.js

@@ -23,3 +23,2 @@ /*───────────────────────────────────────────────────────────────────────────*\

var express = require('express');
var reverend = require('reverend');
var debug = require('debuglog')('enrouten');

@@ -30,2 +29,3 @@ var index = require('./lib/index');

var directory = require('./lib/directory');
var path2regexp = require('path-to-regexp');

@@ -78,3 +78,3 @@

if (typeof route === 'string') {
return reverend(route, data || {});
return path2regexp.compile(route)(data);
}

@@ -81,0 +81,0 @@ return undefined;

{
"name": "express-enrouten",
"version": "1.2.0",
"version": "1.2.1",
"description": "An express route initialization and configuration module.",

@@ -39,4 +39,4 @@ "main": "index.js",

"debuglog": "^1.0.1",
"reverend": "^0.3.0"
"path-to-regexp": "^1.1.1"
}
}
express-enrouten
==================
Lead Maintainer: [Jean-Charles Sisk](https://github.com/jasisk)
[![Build Status](https://travis-ci.org/krakenjs/express-enrouten.svg?branch=master)](https://travis-ci.org/krakenjs/express-enrouten)
[![NPM version](https://badge.fury.io/js/express-enrouten.png)](http://badge.fury.io/js/express-enrouten)
Route configuration middleware for expressjs.

@@ -10,5 +15,2 @@

[![Build Status](https://travis-ci.org/krakenjs/express-enrouten.png)](https://travis-ci.org/krakenjs/express-enrouten)
[![NPM version](https://badge.fury.io/js/express-enrouten.png)](http://badge.fury.io/js/express-enrouten)
### API

@@ -15,0 +17,0 @@ #### `app.use(enrouten(options))`

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