
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@justeat/f-copy-assets
Advanced tools
Copies assets from node modules to a specified destination directory
A module that copies assets from node_modules to a specified destination directory, using promises
const copyAssets = require('@justeat/f-copy-assets');
const options = {
pkgSrcGlob: 'node_modules/@justeat/*/',
dest: 'assets/',
verbose: true,
logger: gutil.log
};
copyAssets(options)
pkgSrcGlob
default: "node_modules/*/"
Glob to match directory (or directories) containing packages from which will be copied if they are found.
dest
default: "dist"
The directory to copy files to.
verbose
default: false
Whether or not to log the files that are being copied.
logger
default: console.log
If verbose
, the function to use for logging.
There are a few different ways this can be configured.
{
"assets": {
"root": "dist/",
"glob": "img/**/*.{png,svg}"
}
}
All files matching the glob "dist/img/**/*.{png,svg}"
will be copied into an img
directory in the dest
directory.
{
"assets": {
"root": "dist/",
"glob": "img/**/*.{png,svg}",
"dest": "./"
}
}
All files matching the glob "dist/img/**/*.{png,svg}"
will be copied into an img
directory in the root of the project.
{
"assets": [
{
"root": "dist/",
"glob": "img/**/*.{png,svg}"
},
{
"root": "src/",
"glob": "templates/**/*",
"dest": "./"
}
]
}
All files matching the glob "dist/img/**/*.{png,svg}"
will be copied into an img
directory in the dest
directory, and all files matching the glob "src/templates/**/*"
will be copied into a templates
directory in the root of the project.
root
Root directory to search for assets. The file structure under "root"
will be preserved, so in this example, copied assets would be found in "assets/img/..."
.
glob
Specify a glob pattern to search for assets which should be copied.
dest
Specify the directory that the matched assets should be copied into. This option is not required — it will default to the dist
option within the module options.
FAQs
Copies assets from node modules to a specified destination directory
The npm package @justeat/f-copy-assets receives a total of 0 weekly downloads. As such, @justeat/f-copy-assets popularity was classified as not popular.
We found that @justeat/f-copy-assets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 open source maintainers 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.