connect-devicedetect

1.0.0 • Public • Published

connect-devicedetect NPM version Build Status

Connect middleware to bucket user-agent strings into device groups. Sets X-UA-Device header to device buckets like phone or desktop based on user-agent. Useful as a development-time stub for edge-cache based detection like varnish-devicedetect. when Fastly isn't already

connect = require 'connect'
deviceDetect = require 'connect-devicedetect'
 
app = connect().use(deviceDetect())

/connect-devicedetect/

    Package Sidebar

    Install

    npm i connect-devicedetect

    Weekly Downloads

    2

    Version

    1.0.0

    License

    none

    Last publish

    Collaborators

    • goodeggs-admin
    • benbuckman