Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@contrast/code-events

Package Overview
Dependencies
Maintainers
9
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/code-events

Listen for v8 CodeEvents and make them available to JavaScript

latest
npmnpm
Version
4.0.2
Version published
Maintainers
9
Created
Source

@contrast/code-events

Test

This module exposes CodeEvent data from the underlying v8 engine, such as the 'LAZY_COMPILE' and 'FUNCTION' types.

Usage

Register a listener for code events:

const { setCodeEventListener } = require('@contrast/code-events');

// with the default poll interval of 100ms:
setCodeEventListener((event) => {
  console.log(event);
});

// with a custom poll interval of 500ms:
setCodeEventListener((event) => {
  console.log(event);
}, { interval: 500 });

FAQs

Package last updated on 30 Jul 2025

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