Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
copy-random
Advanced tools
Copy random files from a folder
npm install copy-random --save
var cpyr = require('copy-random');
cpyr('./test/*.png','./test/output',3).then(function(){
})
npm install copy-random -g
Usage
$ cpyr <source>... <destination> <size>
Options
--no-overwrite Do not overwrite the destination
--parents Preserve path structure
--cwd=<dir> Working directory for files
--rename=<filename> Rename all <source> filenames to <filename>
<source> can contain globs if quoted
Examples
Copy 3 random .png files in src folder into dist except src/goat.png
$ cpyr "src/*.png" "!src/goat.png" dist 3
Copy 3 random .html files inside src folder into dist and preserve path structure
$ cpyr "**/*.html" "../dist/" 3 --cwd=src --parents
MIT
FAQs
Copy random files
The npm package copy-random receives a total of 0 weekly downloads. As such, copy-random popularity was classified as not popular.
We found that copy-random 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.