Connect middleware to bucket user-agent strings into device groups.
X-UA-Device header to
desktop based on user-agent.
X-UA-Device-Detailed header to
tabled-android based on user-agent.
Useful as a development-time stub for edge-cache based detection like varnish-devicedetect when Varnish/Fastly are not proxying requests.
connect = require 'connect' deviceDetect = require 'connect-devicedetect' app = connect().use(deviceDetect())