express-isit
v0.0.1
Published
ExpressJS middleware for naming useragents
Downloads
4
Maintainers
Readme
isit
Install
$ npm i --save express-isit
Usage:
app.use(require('express-isit')())
app.get('/', function(req, res){
if(req.isit.facebook){
res.json('Hello, FaceBook')
}else{
if(req.itis)
res.json("This is: "+req.itis)
else
res.json("Unknown user agent")
}
})
Supported User-agents
- vk.com
- odnoklassniki.ru