Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
yu-node
Advanced tools
Readme
仅用于node
npm install yu-node --save
引入
const { emptyDir,rmDir,getAllFiles } = require('yu-node');
let bool = emptyDir('./目录a'); //true 或 false
rmDir(dirPath)
:清空并删除目录,完成返回true,否则返回falselet bool = rmDir('./目录a'); //true 或 false
getAllFiles(dirName)
:获取目录下的所有文件名let arr = getAllFiles('./目录名');
//[ 'D:\\demo\\node-babel\\src\\foo\\a.css','D:\\demo\\node-babel\\src\\foo\\b.js',]
FAQs
Unknown package
The npm package yu-node receives a total of 3 weekly downloads. As such, yu-node popularity was classified as not popular.
We found that yu-node 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.
Research
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.