req.header Express.js
var userAgent = req.headers['user-agent'];
or
var userAgent = req.headers.userAgent;
Rasel Hossain
var userAgent = req.headers['user-agent'];
or
var userAgent = req.headers.userAgent;
var userAgent = req.headers['user-agent'];