
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
nodejsmonit
Advanced tools
mnpm i -S @mc/nodejsmonit --unsafe-perm=true --allow-root
Express:
const express = require("express");
const app = express();
const nodejsmonit = require("@mc/nodejsmonit");
app.use(
nodejsmonit({
callback: function (time, req) {
console.log(`${req.method} ${req.url} res time ${time}`);
}
})
);
Koa:
import Koa from 'koa'
const app = Koa();
const nodejsmonit = require("@mc/nodejsmonit");
app.use(
nodejsmonit({
type:'koa',
callback: function (time, req) {
console.log(`${req.method} ${req.url} res time ${time}`);
}
})
);
/api/123/common/3423, 设置DEMO: /api/*/commom/*]1, 项目根目录增加 devops 目录 创建配置文件:appmeta.properties
devops.app.id=3028
devops.app.code=helpdesk-api
devops.env.id=3
devops.env.code=test
devops.group.id=4232
devops.group.code=default
devops.instance.id=helpdesk-api-7
devops.instance.db.primary=23354
devops.local.ip=192.168.248.169
devops.datacenter.code=az
2,
const express = require("express");
const app = express();
const nodejsmonit = require("@mc/nodejsmonit");
app.use(
nodejsmonit({
debug: true, // 开启调试模式
callback: function (time, req) {
console.log(`${req.method} ${req.url} res time ${time}`);
}
})
);
3,
pm2 start app.js // 必须用pm2 启动
注意:默认只有生产环境会上报监控数据
FAQs
监控SDK
The npm package nodejsmonit receives a total of 3 weekly downloads. As such, nodejsmonit popularity was classified as not popular.
We found that nodejsmonit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.