@contrast/code-events
TypeScript icon, indicating that this package has built-in type declarations

4.0.2 • Public • Published

@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 });

Readme

Keywords

none

Package Sidebar

Install

npm i @contrast/code-events

Weekly Downloads

5,137

Version

4.0.2

License

MIT

Unpacked Size

2.11 MB

Total Files

29

Last publish

Collaborators

  • tough-griff
  • michaelwitz
  • chrisdunne
  • contrast_admin
  • jcolekaplan
  • bmacnaughton
  • contrastsec
  • planetlevel
  • mhenry-contrast