Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hapi-version-route

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-version-route

Exposes server version through a route for a hapi server

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

hapi-version-route

Exposes package.json version through a version route for a hapi server.

Inspired by hapi university, and useful for version checking deployed servers, basic monitoring, smoke testing etc.

Circle CI

Requirements

Uses package.json variables to determine the server version so requires you run your server with npm start instead of node <script>.

Usage

Install

npm install --save hapi-version-route

Register plugin

server.register({
  register: require('hapi-version-route')
}, function(err) {
  ...
});

Consume

GET /version
{
  "version": "x.x.x"
}

Plugin options

path - register your own path, instead of /version auth - auth config for the route

Keywords

FAQs

Package last updated on 24 Nov 2015

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