
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Programatic PM2 process.
Start, delete, sendMsg by pm2 api using typescript.
When start a pm2 process by name, will check if the name exist, if exist, will delete it then start.
When kill a pm2 process by name, will check if it exsit, also will check if it is killed successfully.
npm install --save pm-msg
import { pmMsg } from 'pm-msg'
pmMsg.start({
script: './example/script.ts',
instances: 2,
name: 'script',
max_memory_restart: '100M'
})
import { pmMsg } from 'pm-msg'
pmMsg.kill('script')
import { pmMsg } from 'pm-msg'
pmMsg.send('script', {
data: { msg: 'send message: Hi, what is your name?' },
topic: 'login'
})
The following function will disconnect automatically after done
The following function should call pmMsg.disconnect()
at the end
FAQs
send message to PM2 process, start, delete, sendMsg
The npm package pm-msg receives a total of 1 weekly downloads. As such, pm-msg popularity was classified as not popular.
We found that pm-msg 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.