
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
copy-files-rev
Advanced tools
Copy files and folders to a wanted destination.
This is the next generation of copy-files-tree package
To install package using npm
npm install --save copy-files-rev
Or with yarn
yarn add copy-files-rev
import {copyFilesSync} from 'copy-files-rev'
const error = copyFilesSync(FoldersData);
import {copyFiles} from 'copy-files-rev'
(async () => {
const error = await copyFiles(FoldersData);
})()
FoldersData <Object>
Key <String> Folder source path
Value <Object> Folder data
foldersAndFiles <Array> Of <String> should contain the folders/files names you want to copy from the Key path
destination <String> Destination folder path
options <Object> This field is optional
allFiles <boolean> Default false, use true in case you want to copy all the files in the Key path
allDirectories <boolean> Default false, use true in case you want to copy all the folders in the Key path
import {copyFiles} from 'copy-files-rev'
const FoldersData = {
'/Users/user1/folder-name-1': {
foldersAndFiles: ['image.png', 'inner-folder-name1'],
destination: '/Users/user1/some-folder-name',
},
'/Users/user2/folder-name-2': {
options: {
allFiles: true, // Folder files [`file-name1.txt`, `file-name2.txt`]
},
destination: '/Users/user2/some-folder-name2'
}
}
(async () => {
const error = await copyFiles(FoldersData);
})()
/Users/ ----- |
- user1 --- folder-name-1 ---
| |
| - 'image.png'
| |
| - 'inner-folder-name1' // With all the inner files and folders
|
|
- user2 --- folder-name-2 ---
|
- `file-name1.txt`
|
- `file-name2.txt`
Please don't hesitate to donate this package, and reaching me out.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
Copy files from source into destination
We found that copy-files-rev 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.