Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
node-health-agent
Advanced tools
[![GitHub release](https://badge.fury.io/js/node-health-agent.svg)](https://github.com/wallet77/node-health-agent/releases/) [![GitHub license](https://img.shields.io/github/license/wallet77/node-health-agent)](https://github.com/wallet77/node-health-agen
Node agent for Node health project.
/!\ 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 node-health-agent --save
const agent = require('node-health-agent')({
appName: 'testAPI',
serverUrl: 'ws://localhost:3001',
inspector: {
storage: {
type: "s3",
bucket: process.env.CONFIG_S3_BUCKET,
dir: 'inspector'
}
}
})
agent.addEvent('myEvent', (event) => {
console.log(event)
})
agent.addEvent('myEvent', (event, ws) => {
const data = ... // get data in any way
event.data = data
ws.send(JSON.stringify(event))
})
Event | description |
---|---|
cpu_profiling_start | Start a CPU profiling |
cpu_profiling_stop | Stop a CPU profiling |
extract_env_var | Extract environment variables |
extract_package_file | Extract package.json file content |
extract_dependencies | Extract the full dependencies tree |
memory_dump | Take a memory snapshot |
memory_sampling_start | Start a memory sampling |
memory_sampling_stop | Stop memory sampling |
code_coverage_start | Start to collect code coverage data |
code_coverage_stop | Stop code coevrage and send data |
$ npm test
Coverage report can be found in coverage/.
FAQs
[![GitHub release](https://img.shields.io/npm/v/node-health-agent.svg)](https://github.com/wallet77/node-health-agent/releases/) [![GitHub license](https://img.shields.io/github/license/wallet77/node-health-agent)](https://github.com/wallet77/node-health-
The npm package node-health-agent receives a total of 39 weekly downloads. As such, node-health-agent popularity was classified as not popular.
We found that node-health-agent demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.