user_agent

Creator: coderz1093

Last updated:

0 purchases

user_agent Image
user_agent Images
Add to Cart

Description:

user agent

user_agent #
Simple Dart user agent detection library.
Runs anywhere.
Incorporates some code from the old package:r2d2.
main() async {
app.get('/', (req, res) async {
var ua = new 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.