node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »


scooter Logo

Scooter is a User-agent information plugin for hapi

Build Status

Lead Maintainer: Daniel Bretoi

Scooter uses the useragent package to provide user-agent information. For more details of what information scooter provides, please see the useragent web-page.


    const Hapi = require('hapi');
    const server = new Hapi.Server(8086);
    const Scooter = require('scooter');
        method: 'GET',
        path: '/user-agent',
        handler: (request, reply) => {
            return reply(request.plugins.scooter.toJSON());
    server.register(Scooter, (err) => {
        server.start(() => {
            console.log( + '/user-agent');