
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.
disrequire
Advanced tools
Same as qmock.unrequire
, but available standalone.
This package exports a function to undo the side-effects of a require()
.
All cached copies of an external nodejs module loaded with require
will be discarded.
Built-in modules such as http
do not have separate cached copies, and are not unloaded.
const disrequire = require('disrequire');
disrequire('config');
Unload the named package from all require
caches. The package is removed from
require.cache
and from every module.children[]
in which it occurs. Built-in modules
like http
are not unloaded.
const disrequire = require('disrequire');
disrequire('config');
Shallow unload a single copy of the named package from the require
caches. The package is
removed from require.cache
and from the module that loaded it, ie
require.cache[require.resove(packageName)].parent.children[]
.
If it is known that only one module loaded the package, it is much faster to not have to walk the module tree searching for other locations.
const disrequire = require('disrequire'); // now you see it
disrequire.quick('disrequire'); // now you dont
stack
disrequire.quick()
shallow unloadresolveOrSelv
qmock
qmock
- various useful mocks and stubs,
including mocks for node system functionsFAQs
undo a require
The npm package disrequire receives a total of 1,229 weekly downloads. As such, disrequire popularity was classified as popular.
We found that disrequire 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.