3rd-Eden / useragent

Useragent parser for Node.js, ported from browserscope.org
MIT License
897 stars 137 forks source link

Feature request - add function to determine isMobile #87

Open visheshsinghal opened 8 years ago

visheshsinghal commented 8 years ago

Something like -

function isMobile(userAgent) {
    return !!userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i);
};