New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@flexshopper/hapi-listeners

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flexshopper/hapi-listeners

Standard NPM package with Flexshopper coding standards and guidelines.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
5
Weekly downloads
 
Created
Source

@flexshopper/hapi-listeners NPM version Build Status

Documentation

Getting started

How use it

  • Install hapi-listeners npm package in your project our plugin. npm i @flexshopper/hapi-listeners

Registering

manifest style:

registrations: [
    ...
    {
        plugin: {
            register: '@flexshopper/hapi-listeners',
            options: {
                dirname: '/lib/listeners'
            }
        }
    }
];

Listener structure:


module.exports = {
    name: 'eventName',
    method: (data) => {
        // any code that will execute when eventName is fired
    }
};

Just by creating a kraken event in any route handler


server.route({
    method: 'GET',
    path: '/route',
    handler: (request, reply) => {

        request.krakenEvent = {
            name: 'eventName',
            data: {}
        };
    }
})

Guidelines

License

© Flexshopper, LLC

FAQs

Package last updated on 03 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc