Newton's Programmatic Measurements

    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())

    Install

    npm i connect-devicedetect

    DownloadsWeekly Downloads

    81

    Version

    1.0.0

    License

    none

    Last publish

    Collaborators

    • goodeggs-admin
    • benbuckman