Devicejs
Devicejs is a library with which you can easily detect the client environment, convenient the web development.
Installation
Install with npm:
$ npm install devicejs
Install with bower:
$ bower install device
usage
var device = require("devicejs");
console.log(device.platform);
APIs
refer to Node.js OS api for full usage. They are just the same.