Skip to content

ixorakos/is-mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

is-mobile

Detects whether the user is on a mobile device.

User agent sniffing for a mobile phone has gotten rather complex, so I made this component to simplify it.

Usage

var device = require('littlstar/is-mobile');

if (device.isMobile()) {
  // the person is on a mobile phone
}

License

MIT

About

Detects whether the user is on a mobile device.

Resources

Stars

Watchers

Forks

Packages

No packages published