set-headers

1.0.0 • Public • Published

set-headers

Express/Connect middleware to set response headers based on globs

Install

npm install set-headers --save

Usage

var express = require('express');
var setHeaders = require('set-headers');
 
var app = express();
 
app.use(setHeaders({
  '/some/path/**/*.json': {
    'Content-Type': 'application/json'
  }
}));
 
app.listen(3000, function () {
  
});

Run Tests

npm install
npm test

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.08latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.08
0.1.10
0.1.00

Package Sidebar

Install

npm i set-headers

Weekly Downloads

8

Version

1.0.0

License

MIT

Last publish

Collaborators

  • scottcorgan
  • mbleigh