express-method-override

Override the method of a request based on a the X-HTTP-Method-Override header or custom query/post parameter.

npm install express-method-override
7 downloads in the last day
41 downloads in the last week
71 downloads in the last month

Express Method Override

Override the method of a request based on a the X-HTTP-Method-Override header or custom query/post parameter.


Installation

npm install express-method-override

Usage:

// Be sure to place after the body parser if you want to accept the method 
// override using a post parameter
app.use(express.bodyParser());

// Accepts a single argument, the name of the method override parameter,
// defaults to "_method"
app.use(require('express-method-override')('method_override_param_name'));
npm loves you