
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
connect-mockjs
Advanced tools
简单封装 Mock.js 用于 Express 的中间件
安装:npm i connect-mockjs
使用:app.use('/mock', mock());
可以传参数,自定义模板文件夹地址 app.use('/mock', mock('mock-tmpl'));
示例查看文件夹 example 中的 app.js
运行 app.js 后, 访问 http://localhost:3000/mock?mock=test/test 或者 http://localhost:3000/mock?mock=test , 可以查看模拟数据, 支持 json 和 jsonp。
var express = require('express'),
mock = require('connect-mockjs');
var app = express();
app.use(express.query());
// app.use(mock('mock-tmpl')); 自定义模板文件夹
app.use(mock());
app.listen(3000);
FAQs
Mock.js middleware for Connect/Express
The npm package connect-mockjs receives a total of 1 weekly downloads. As such, connect-mockjs popularity was classified as not popular.
We found that connect-mockjs 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.