Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 432 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 432 Bytes

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