Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contrast/dep-hooks

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/dep-hooks

Wrapper around the Contrast require-hook library

  • 1.3.4
  • npm
  • Socket score

Version published
Weekly downloads
7.7K
decreased by-55%
Maintainers
0
Weekly downloads
 
Created
Source

@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.

  • descriptor:String - descriptor that describes the module to hook
  • handlers:Function - functions that are executed after the require

reset(request) - Resets the seen handlers for a given module - they will be re-run on next require.

  • request:String - request the string passed to require()

https://github.com/Contrast-Security-Inc/node-require-hook

FAQs

Package last updated on 15 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc