transform-header

0.0.1 • Public • Published

transform-header

NPM version Build Status Code Climate Test Coverage

Express Middleware for Transform a Header to either a Request Property or another Header.

Install

NPM

$ npm install transform-header

Node.js

var express    = require('express');
var requestType = require('transform-header');
 
var app = express();
 
app.use(transformHeader.property('X-HTTP-Method-Override', 'method'));
app.use(transformHeader.header('X-Accept', 'Accept'));
 

License

MIT

Package Sidebar

Install

npm i transform-header

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • davidtpate