Skip to content
master
Go to file
Code
This branch is 19 commits ahead, 17 commits behind cedriking:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

BrowserIs

NOTE: I'd strongly recommend using Platform instead of this module; Platform is just better.

Ask questions about the browser in Express. Based on is.js.

Example

npm install browseris or add browseris to package.json.

var is = require('browseris');

// ...

myExpressApp.get('/index', function(request, response) {
    if (is(request).desktop) {
        response.send('You are on a desktop!');
    } else {
        response.send('You are not on a desktop!');
    }
});

// ...

Supported properties

  • ie
  • ie6
  • ie7
  • ie8
  • ie9
  • firefox
  • gecko
  • opera
  • safari
  • chrome
  • webkit
  • mobile
  • tablet
  • desktop
  • kindle
  • tv
  • windows
  • mac
  • unix
  • linux

About

NO LONGER MAINTAINED. Ask questions about the browser in Express.

Resources

License

Releases

No releases published
You can’t perform that action at this time.