This package has been deprecated

Author message:

This module has moved and is now available at @hapi/scooter. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.

scooter

5.0.2 • Public • Published

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.

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i scooter

Weekly Downloads

223

Version

5.0.2

License

BSD-3-Clause

Unpacked Size

66.2 kB

Total Files

9

Last publish

Collaborators

  • nargonath
  • devinivy
  • marsup
  • nlf