🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

hapi-routes-endpoint

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-routes-endpoint

Lightweight hapi.js plugin that creates an endpoint listing all your app's routes.

1.0.7
latest
Source
npm
Version published
Maintainers
1
Created
Source

hapi-routes-endpoint

npm

Lightweight hapi.js plugin that creates an endpoint listing all your app's routes.

Installation

npm install hapi-routes-endpoint

or

yarn add hapi-routes-endpoint

Usage

const hapiRoutesEndpoint = require('hapi-routes-endpoint');

const start = async function() {
  const server = Hapi.server();

  // Register plugin
  await server.register(hapiRoutesEndpoint);
};

TODO:

  • Make TS typings work properly
  • Make endpoint customizable! (currently hardcoded as '/')
  • Make route information customizable (currently in the form of 'GET /foo-endpoint')
  • Add circleci

Keywords

hapi

FAQs

Package last updated on 04 Nov 2019

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