Socket
Socket
Sign inDemoInstall

express-routes-mapper

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-routes-mapper - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

package.json
{
"name": "express-routes-mapper",
"version": "0.0.4",
"version": "0.0.5",
"description": "a small mapper for express routes",

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

@@ -93,8 +93,8 @@ # express-routes-mapper

* `import routes from './config/routes';` the file where all the routes are mapped
* `import route from 'express-routes-mapper';` the package that makes the mapping possible
* `app.use('/', route(routes));` tell express to use the mapped routes
* `import mapRoutes from 'express-routes-mapper';` the package that makes the mapping possible
* `app.use('/', mapRoutes(routes));` tell express to use the mapped routes
and here
* `var routes = require('./config/routes');` the file where all the routes are mapped
* `var route = require('express-routes-mapper');` the package that makes the mapping possible
* `app.use('/', route(routes));` tell express to use the mapped routes
* `var mapRoutes = require('express-routes-mapper');` the package that makes the mapping possible
* `app.use('/', mapRoutes(routes));` tell express to use the mapped routes

@@ -101,0 +101,0 @@

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