
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.
基于 node.js 的 fs 模块搭建可视化文件管理系统。实现文件(夹)的增删改查功能。

安装:
npm i @huxy/fss
使用:
import fss from '@huxy/fss';
import configs from './configs/index.js';
const {rootpath, MAXSIZE} = configs;
const apis = fss(rootpath);
指定根目录 rootpath,默认为 '/' 。
const apis = [
{
name: 'readdir',
url: '/fs/readdir',
method: 'post',
},
{
name: 'readfile',
url: '/fs/readfile',
method: 'post',
},
{
name: 'openfile',
url: '/fs/openfile',
method: 'post',
},
{
name: 'mkdir',
url: '/fs/mkdir',
method: 'post',
},
{
name: 'touch',
url: '/fs/touch',
method: 'post',
},
{
name: 'copyfile',
url: '/fs/copyfile',
method: 'post',
},
{
name: 'movefile',
url: '/fs/movefile',
method: 'post',
},
{
name: 'rmfile',
url: '/fs/rmfile',
method: 'post',
},
{
name: 'rnfile',
url: '/fs/rnfile',
method: 'post',
},
];
readdir(path)
返回当前目录下的文件信息。
export const readdir = async (req, res) => {
const {path} = req.body;
try {
const result = await apis.readdir(path);
res.status(200).send({result});
} catch (error) {
res.status(500).send({message: error.message});
}
};

readfile(path)
export const readfile = async (req, res) => {
const {path} = req.body;
try {
const result = await apis.readfile(path);
res.status(200).send({result});
} catch (error) {
res.status(500).send({message: error.message});
}
};

openfile(path)
export const openfile = async (req, res) => {
const {path} = req.body;
try {
const result = await apis.openfile(path);
res.status(200).send({result});
} catch (error) {
res.status(500).send({message: error.message});
}
};

mkdir(path, override)
export const mkdir = async (req, res) => {
const {path, override} = req.body;
try {
await apis.mkdir(path, override);
res.status(200).send({message: '操作成功!'});
} catch (error) {
res.status(500).send({message: error.message});
}
};

touch(path, override, data)
export const touch = async (req, res) => {
const {path, override, data} = req.body;
try {
await apis.touch(path, override, data);
res.status(200).send({message: '操作成功!'});
} catch (error) {
res.status(500).send({message: error.message});
}
};

copyfile(src, dst)
export const copyfile = async (req, res) => {
const {src, dst} = req.body;
try {
await apis.copyfile(src, dst);
res.status(200).send({message: '操作成功!'});
} catch (error) {
res.status(500).send({message: error.message});
}
};

movefile(src, dst)
export const movefile = async (req, res) => {
const {src, dst} = req.body;
try {
await apis.movefile(src, dst);
res.status(200).send({message: '操作成功!'});
} catch (error) {
res.status(500).send({message: error.message});
}
};

rmfile(path)
export const rmfile = async (req, res) => {
const {path} = req.body;
try {
await apis.rmfile(path);
res.status(200).send({message: '操作成功!'});
} catch (error) {
res.status(500).send({message: error.message});
}
};

rnfile(path, newpath)
export const rnfile = async (req, res) => {
const {path, newpath} = req.body;
try {
await apis.rnfile(path, newpath);
res.status(200).send({message: '操作成功!'});
} catch (error) {
res.status(500).send({message: error.message});
}
};

FAQs
node.js file system
The npm package @huxy/fss receives a total of 8 weekly downloads. As such, @huxy/fss popularity was classified as not popular.
We found that @huxy/fss 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.