Socket
Socket
Sign inDemoInstall

@contrast/dep-hooks

Package Overview
Dependencies
Maintainers
9
Versions
19
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


Version published
Weekly downloads
19K
decreased by-18.81%
Maintainers
9
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 26 Oct 2023

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