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.
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 63 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.
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.