user_agent_analyzer

Creator: coderz1093

Last updated:

0 purchases

user_agent_analyzer Image
user_agent_analyzer Images

Languages

Categories

Add to Cart

Description:

user agent analyzer

User Agent Analyzer #



Replacement of package:user_agent with breaking changes to support NNBD.
A library to identify the type of devices and web browsers based on User-Agent string.
Runs anywhere.
void main() async {
app.get('/', (req, res) async {
var ua = UserAgent(req.headers.value('user-agent'));

if (ua.isChrome) {
res.redirect('/upgrade-your-browser');
return;
} else {
// ...
}
});
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.