Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

daruk-monitor-middleware

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daruk-monitor-middleware

A nodejs use typescript project

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
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

daruk-monitor-middleware

FAQs

Package last updated on 17 May 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