0.0.0 • Published 10 years ago

ua-compatible v0.0.0

Weekly downloads
178
License
ISC
Repository
github
Last release
10 years ago

ua-compatible

Set the X-UA-Compatible header in an express middleware.

Forces IE to use the most up to date rendering engine possible, default to chrome-frame if installled

build status

Installation

npm install ua-compatible --save

Usage

  var express = require('express')
  var app = express()
  var uaCompatible = require('ua-compatible')

  app.use(uaCompatible)

  app.get('/', function (req, res) {
    res.get('X-UA-Compatible') // === 'IE=edge,chrome=1'
  })

  app.listen(3000)

Credits

Adam Duncan