Have ideas to improve npm?Join in the discussion! »

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

Install

npm i set-headers

DownloadsWeekly Downloads

8

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar