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

lev-restify

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lev-restify

Life Event Verification's Restify Server

  • 4.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
0
Weekly downloads
 
Created
Source

Life Event Verification's Restify server

A highly opinionated Restify server for use in the Life Event Verification (LEV) project.

The server features:

  • JSON logging (via Bunyan) and logs special headers provided by keycloak-gatekeeper.
  • A simple liveness health-check on /healthz.
  • 'Secure' headers on every response.
  • Bundled functionality for custom metrics and some helper functions.

Usage

Simple require this package:

const restify = require('lev-restify');

You can then create a Restify server using createServer() and access bundled functionality by accessing properties on the object.

const httpd = restify.createServer({ name: 'my-server' });
const log = httpd.log;

httpd.listen(8080, '0.0.0.0', () => {
  log.info('%s listening at %s', httpd.name, httpd.url);
});

(In addition, the object returned by createServer() has an extra property, .log which contains the logger. This can be used for logging outside the context of a request, when req.log is available.)

Testing

To test changes to this repository simply run:

make test

FAQs

Package last updated on 07 Nov 2024

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