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

express-route-builder

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-route-builder - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

4

index.js

@@ -56,6 +56,4 @@ 'use strict';

*/
addStatic (_dir, mountPath = null) {
addStatic (dir, mountPath = null) {
const dir = pathify(this.baseDir, _dir);
if (mountPath) {

@@ -62,0 +60,0 @@ this.app.use(this.express.static(mountPath, dir));

@@ -10,3 +10,3 @@ {

"name": "express-route-builder",
"version": "0.0.8",
"version": "0.0.9",
"description": "Quickly compile Express.js routes with minimal code.",

@@ -13,0 +13,0 @@ "keywords": [

@@ -73,2 +73,2 @@ # Express-Route-Builder

#### .addStatic(dir, prefix = null);
Adds a directory to your express app where static files will be served up from. The directory will be relative to the `baseDir` specified in the constructor. The prefix parameter is optional and will be prepended to the file path in the URL, just like with express.static().
Adds a directory to your express app where static files will be served up from. The directory will be relative to the current working directory of your app so it's a good idea to specify an absolute path. The prefix parameter is optional and will be prepended to the file path in the URL, just like with express.static().
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