4.0.0 • Published 4 months ago

@contrast/fn-inspect v4.0.0

Weekly downloads
3,898
License
MIT
Repository
github
Last release
4 months ago

@contrast/fn-inspect

Test

This module exposes some useful information from the underlying v8 engine, including:

  • file and line number given a function reference
  • code events (i.e. 'LAZY_COMPILE')

Usage

Getting details about a function:

const { funcInfo } = require('@contrast/fn-inspect');

function testFn() {}

const results = funcInfo(testFn);
// => { lineNumber: 2, column: 15, file: 'example.js', method: 'testFn', type: 'Function' }

Registering a listener for code events:

const { setCodeEventListener } = require('@contrast/fn-inspect');

setCodeEventListener((event) => {
  console.log(event);
});

Building locally

npm run build will build the project for your current OS and architecture.

npm run download will pull the most recent build artifacts from GitHub.

Publishing

Simply run npm version and git push && git push --tags. CI will take care of releasing on taggedcommits.

4.0.0

4 months ago

3.4.0

8 months ago

3.3.1

1 year ago

3.3.0

1 year ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

3.1.0-beta.1

2 years ago

2.4.7

2 years ago

2.4.6

2 years ago

2.4.3

2 years ago

2.4.5

2 years ago

2.4.4

2 years ago

2.4.2

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.2.1

3 years ago

2.3.1

3 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago