Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@saber2pr/node
Advanced tools
utils for nodejs
# from npm
npm install @saber2pr/node
# from github
git clone https://github.com/Saber2pr/node.git
exists
fs.exists
的 Promise 版本
stat
检测一个路径是文件夹还是文件
readdir
fs.readdir
的 Promise 版本
search
搜索目录下所有文件或所有文件夹
readFile
fs.readFile
的 Promise 版本
writeFile
fs.writeFile
的 Promise 版本
mkdir
fs.mkdir
的 Promise 版本
mkPath
创建一条路径
unlink
fs.unlink
的 Promise 版本
rmdir
fs.rmdir
的 Promise 版本
clearDir
清空目录下所有文件
remove
删除一个目录
getUserInput
终端对话交互
getParams
获取命令行参数
error
命令行输出
警告
success
命令行输出
正确
tips
命令行输出
提示
cookie
把一个对象转为
cookie
字符串
deCookie
把一个
cookie
字符串转为对象
query
从
request
从获取参数
response 的代理
http 异常类,继承自
Error
把一个 HttpException 发送 ServerResponse
npm install
npm start
npm test
you should write ts in /src
you should make test in /src/test
export your core in /src/index.ts!
FAQs
utils for nodejs
The npm package @saber2pr/node receives a total of 2 weekly downloads. As such, @saber2pr/node popularity was classified as not popular.
We found that @saber2pr/node demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.