daruk-monitor-middleware
v1.0.0
Published
A nodejs use typescript project
Downloads
2
Readme
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'];