Skip to content

Latest commit

 

History

History
executable file
·
28 lines (18 loc) · 1.02 KB

README.md

File metadata and controls

executable file
·
28 lines (18 loc) · 1.02 KB

express-protect-maps-middleware

npm version Build Status codecov.io

express middleware that prevents access to sourcemap files

Install

$ npm install --save express-protect-maps-middleware

Usage

Below is a example of usage.

var express = require('express');
var mapsMiddleware = require('express-protect-maps-middleware');

var app = express();
app.use(mapsMiddleware(['your.company.ip', 'error.monitoring.service.ip']), '/assets/');

Thrown Error Object

Variables provided with the error object:

  • err.status HTTP statusCode 403