0.0.1 • Published 9 years ago

express-devices v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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