
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Copy matched src files into another directory
Runs with the amazing Bundl build tool at the src stage
$ npm install --save-dev bundl-copy
var Bundl = require('bundl');
var copy = require('bundl-copy');
var options = {
dest: 'dist/public',
flatten: true
};
new Bundl(targets)
.src(copy(options))
.go();
This can be done by simply passing a string into the copy plugin
copy('dist/public')
Or, if more options are needed, it can be set as a member of the options object
copy({ dest: 'dist/public' })
By default, copied files maintain their original paths relative to basedir
when copied into the dest
folder. If basedir is not specified, process.cwd()
will be used.
{
basedir: 'src/stylesheets'
}
If provided, this Function will be used to filter which files should be copied. Returning true
allows the current file to be copied. Returning false
skips the current file.
{
filter: function (extName, fileName, srcPath) {
if (extName === 'css' && fileName.indexOf('_private') === -1) {
return true;
}
}
}
Setting flatten
to true will cause all matched files to be copied into the root of dest
(basedir
will be ignored).
{
flatten: true
}
FAQs
Copy matched src files into another directory
The npm package bundl-copy receives a total of 0 weekly downloads. As such, bundl-copy popularity was classified as not popular.
We found that bundl-copy 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.