Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
andever
Advanced tools
Readme
A minimalistic daemonizer that will run your Node apps forever and ever!
npm install --save andever
In your package.json, you can now add:
{
"scripts": {
"start": "andever start",
"restart": "andever restart",
"stop": "andever stop"
}
}
Now you can control your app's lifecycle by running npm start
, npm restart
and npm stop
.
Short answer: because all the other ones give me headaches.
Long answer:
If you want to use PM2 or Forever and you really are happy with them, please use them. This is not for you. I have my own reasons though, and I'll try to sum them up quickly here:
Let's do this the substack way. AndEver is a 0-dependency solution to solve just one thing: daemonization of your Node app. Nothing fancy. Just a nice and simple solution.
ps
.AndEver usage: andever <command> [path] [options]
path the path to your Node.js app
command:
start daemonizes the app
restart restarts the daemonized app
stop stops the daemonized app
status outputs the status of the running app (exit codes: 0 = running, 1 = not running)
options:
--out=path file path to write the app's stdout to (applies to "start" and "restart")
--err=path file path to write the app's stderr to (applies to "start" and "restart")
--append will append to log files instead of truncating (applies to "start" and "restart")
--pid=path file path to write the PID file to (applies to all commands)
When running AndEver to boot your app, it will run a copy of itself in the background that will only have one responsibility: restarting your app if it unexpectedly goes down. However, if it goes down with an exit code 0 or because of a signal it received, we don't restart it.
When the process is started up, its PID is written to its root folder in a file called .andever.pid
. This file will
be used by the other commands (restart, stop and status).
AndEver does not take care of your cluster setup. We feel that this is the responsibility of the cluster management code, not the daemonizer, and so we have not bloated AndEver with such logic. There is no cluster logic to be found here.
MIT, enjoy.
FAQs
A minimalistic daemonizer that will run your Node apps forever and ever
The npm package andever receives a total of 4 weekly downloads. As such, andever popularity was classified as not popular.
We found that andever demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.