New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ua-compatible

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ua-compatible

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

0.0.0
latest
npm
Version published
Weekly downloads
1K
14.77%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 18 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts