connect-devicedetect
v1.0.0
Published
Connect middleware to bucket user-agent strings into device groups
Downloads
11
Readme
connect-devicedetect
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())