Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
inspector-api
Advanced tools
A simple node module to access V8 inspector + some tools to export and read the data.
Simple wrapper around "inspector" module. Basically it adds :
/!\ This module use async/await syntax and the inspector module, this is why you must have node 8.0+.
Supported and tested : >= 8.0
Version | Supported | Tested |
---|---|---|
12.x | yes | yes |
10.x | yes | yes |
9.x | yes | yes |
8.x | yes | yes |
**In order to have all features we recommend to use at least Node.js version 10 or higher.
$ npm install inspector-api --save
const Inspector = require('inspector-api');
const inspector = new Inspector()
await inspector.profiler.enable()
await inspector.profiler.start()
// Invoke business logic under measurement here...
// some time later...
await inspector.profiler.stop()
const Inspector = require('inspector-api');
const inspector = new Inspector({
storage: {
type: 's3',
bucket: 'testBucket',
dir: 'inspector'
}
})
await inspector.profiler.enable()
await inspector.profiler.start()
// Invoke business logic under measurement here...
// some time later...
await inspector.profiler.stop()
inspector([config])
storage
: an object containing all exporter configuration (for example S3 bucket's name etc)Option | description | Default value |
---|---|---|
type | Storage type (raw, s3 or fs) | raw |
bucket | S3 bucket's name | 0 |
dir | Directory where to store the file | empty |
If you use fs, the generated data will be store on the disk in your default tmp directory.
You can display it in Node.js with the command require('os').tmpdir()
$ npm test
Coverage report can be found in coverage/.
FAQs
A simple node module to access V8 inspector + some tools to export and read the data.
The npm package inspector-api receives a total of 40,082 weekly downloads. As such, inspector-api popularity was classified as popular.
We found that inspector-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.