Socket
Socket
Sign inDemoInstall

daruk-monitor-middleware

Package Overview
Dependencies
120
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    daruk-monitor-middleware

A nodejs use typescript project


Version published
Maintainers
1
Install size
38.1 MB
Created

Readme

Source

daruk-monitor-middleware

A monitor from v8-profiler-node8 for Daruk

Installation scaffolding


$ cnpm i -g daruk-monitor-middleware

How to use in your daruk project

Find your daruk config file

//daruk.config.ts
darukConfig.middleware = {
  'daruk-monitor-middleware': (mid: Function) => {
    return mid({
      auth: {
        name: 'monitor',
        password: 'monitor'
      }
    });
  }
};

//push it into the middleware list
darukConfig.middlewareOrder = ['daruk-monitor-middleware'];

Your can view the data from Api:

/monitor/profiler

/monitor/profiler/function

/monitor/profiler/mem

/monitor/profiler/mem-analytics

LICENSE

MIT License

Keywords

FAQs

Last updated on 17 May 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc