Skip to content

helpdotcom/user-friendly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

user-friendly

Build Status Coverage Status

User friendly user agent querying

Install

$ npm install user-friendly

API

var UserFriendly = require('user-friendly')
var str = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36'

var uf = UserFriendly(str)
console.log(uf.browser())
// => 'Chrome 41.0.2227'
console.log(uf.os())
// => 'Mac OS X 10.10.1'

See test/fixtures.json for other examples of expected output

Author

Evan Lucas

License

MIT (See LICENSE for more info)

About

User friendly user agent querying

Resources

License

Stars

Watchers

Forks

Packages

No packages published