ua-compatible

0.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i ua-compatible

    Weekly Downloads

    763

    Version

    0.0.0

    License

    ISC

    Last publish

    Collaborators

    • microadam