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.
This module provides a simple interface to manage processes using PM2 (Process Manager 2) in Node.js applications. It allows you to create, start, stop, list, and delete processes with ease.
npm i barely-pm2
You can require this module in your Node.js / Bare application and use the provided functions to manage your PM2 processes.
const { PM2list, PM2delete, PM2stop, PM2start, PM2create } = require('./path-to-your-module');
Lists all PM2 processes.
Deletes a specified PM2 process.
Stops a specified PM2 process.
Starts a specified PM2 process.
Creates and starts a new PM2 process.
Display logs for the process
Here’s an example of how to use the module:
const { PM2list, PM2delete, PM2stop, PM2start, PM2create } = require('./');
PM2create({ name: 'New script', script: '/path/to/script', args: "--host localhost", timeout: 5000 });
PM2list({ color: false });
PM2stop('New script');
PM2start('New script');
PM2delete('New script');
This module is licensed under the GPL-3.0 License. See the LICENSE file for more information.
FAQs
High level PM2 wrapper for nodejs
The npm package barely-pm2 receives a total of 107 weekly downloads. As such, barely-pm2 popularity was classified as not popular.
We found that barely-pm2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.