express-devices

Detect user device type


Keywords
iphone, ipad, ipod, device, express, user-agent, android
License
MIT
Install
npm install express-devices@0.0.1

Documentation

express-devices

Know your user device.

Installation

npm install express-devices

Usage

var devices = require('express-devices');
var app = require('express')();

app.use(devices());


app.get('/', function (req, res) {

	req.is_iphone  // true | false
	req.is_ipad    // true | false
	req.is_pod     // true | false
	req.is_android // true | false
	req.device     // 'iphone' | 'ipad' | 'ipod' | 'android'

});

LICENSE

MIT