0.0.4 • Published 12 years ago

express-mobile-detection v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
12 years ago

Express Mobile Detection

Build Status

Express middleware which uses the client useragent to detect mobile and tablet devices.

Note

It is not always wise to rely on useragents to determine mobile and tablet clients.

Usage

For all routes.

checkMobile = require('express-mobile-detection');
...
app.use(checkMobile());

For single routes.

checkMobile = require('express-mobile-detection');
...
app.get('/', checkMobile(), function (req, res) {
  console.log(req.mobile);
  console.log(req.tablet);
});

License

Licensed MIT unless otherwise noted. See LICENSE file.

This module uses public domain code from Chad Smith's detectmobilebrowsers.com project.

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago