user_agent_analyzer 3.0.2 copy "user_agent_analyzer: ^3.0.2" to clipboard
user_agent_analyzer: ^3.0.2 copied to clipboard

outdated

A library to identify the type of devices and web browsers based on User-Agent string.

User Agent Analyzer #

version Null Safety License

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 {
            // ...
        }
    });
}
2
likes
0
pub points
74%
popularity

Publisher

verified publisherdukefirehawk.com

A library to identify the type of devices and web browsers based on User-Agent string.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on user_agent_analyzer