node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

express-the-cheat

express-the-cheat

Do you use Express?

Are you sick of that x-powered-by: Express header that Express puts in by default?

Do you wish your HTTP headers were slathered in awesomesauce?

Do you think everything that is powered by anything should be powered by the Cheat?

Then express-the-cheat is the middleware for you!

Installation

npm install express-the-cheat

Usage

var express = require('express')
  , app
  , expressTheCheat = require('express-the-cheat')
  ;
 
  app = express.createServer();
  app.use(expressTheCheat());
  app.get('/', function (req, res, next) {
    res.ok();
  });
  app.listen(5555);

Now all your responses should have an awesome x-powered-by: The Cheat header!