https://github.com/qubitproducts/express-sourcemap-filter
Simple express middleware to restrict sourcemap access to certain IP addresses
https://github.com/qubitproducts/express-sourcemap-filter
ceh cmh implement
Last synced: 7 months ago
JSON representation
Simple express middleware to restrict sourcemap access to certain IP addresses
- Host: GitHub
- URL: https://github.com/qubitproducts/express-sourcemap-filter
- Owner: QubitProducts
- Created: 2016-02-14T12:03:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-14T12:55:25.000Z (almost 10 years ago)
- Last Synced: 2025-06-29T06:07:04.191Z (7 months ago)
- Topics: ceh, cmh, implement
- Language: JavaScript
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express-sourcemap-filter [ ](https://codeship.com/projects/134073) [](https://badge.fury.io/js/express-sourcemap-filter)
Middleware for express that restricts sourcemap access to an array of IP addresses.
## Usage
```js
import express from 'express'
import sourcemapFilter from 'express-sourcemap-filter'
let app = express()
app.use(sourcemapFilter(['219.25.84.2'], { // config is optional - defaults shown below
status: 204, // status code to respond with if IP is not valid
pattern: /\.(css|js)\.map$/ // regex to test if request path is a sourcemap
}))
```
## Developing
```
make bootstrap
make test
make test-watch
make lint
make publish
```
## Want to work on this for your day job?
This project was created by the Engineering team at [Qubit](http://www.qubit.com). As we use open source libraries, we make our projects public where possible.
We’re currently looking to grow our team, so if you’re a JavaScript engineer and keen on ES2016 React+Redux applications and Node micro services, why not get in touch? Work with like minded engineers in an environment that has fantastic perks, including an annual ski trip, yoga, a competitive foosball league, and copious amounts of yogurt.
Find more details on our [Engineering site](https://eng.qubit.com). Don’t have an up to date CV? Just link us your Github profile! Better yet, send us a pull request that improves this project.