Socket
Book a DemoInstallSign in
Socket

mxd-info

Package Overview
Dependencies
Maintainers
15
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mxd-info

Provide info routes for debugging

latest
Source
npmnpm
Version
3.0.1
Version published
Maintainers
15
Created
Source

Example

Use optionally the summarize function to add more information to the /info/summary

const info = require('mxd-info')(config, app);

const summarize = summary => {};
info(summarize); 

Config

List of JSON paths of the info (config and package) which will be disguised for the /info/config, /info/package and /info/properties. For /info/properties the paths from /info/config will also be used

Environment Variables

If environment variables are set, the config object will be ignored!

  • MXD_INFO: JSON encodet list of JSON paths

'config' Object

{
  "info": []
}

Routes

  • /info and /info/summary: response the summary with the most important information
  • /info/config: response the config
  • /info/package: response the package.json
  • /info/properties: response the config/properties.json
  • /info/version: response the version with the revision

FAQs

Package last updated on 31 Jan 2018

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