Product
Introducing Socket Optimize
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
@contrast/dep-hooks
Advanced tools
@contrast/dep-hooks
Register hooks for module loads.
This provides a factory wrapper around @contrast/require-hook
.
RequireHook class exposes the following methods:
resolve(descriptor, ...handlers)
- Registers handlers to run after the described
module is required.
reset(request)
- Resets the seen handlers for a given module - they will be re-run
on next require.
FAQs
Post hooks for Module.prototype.require
The npm package @contrast/dep-hooks receives a total of 20,775 weekly downloads. As such, @contrast/dep-hooks popularity was classified as popular.
We found that @contrast/dep-hooks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 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.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
Product
We're excited to announce that Socket now supports the Java programming language.
Security News
Socket detected a malicious Python package impersonating a popular browser cookie library to steal passwords, screenshots, webcam images, and Discord tokens.