![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Spawns a process, monitors it, and automatically revives. Only has two dependencies!
npm install revive
const Revive = require('revive');
const ARG = ['app.js'];
const CWD = '/home/user/code/node/app/.';
const options = {
name: 'test',
arg: ARG,
cwd: CWD,
env: { PORT: 4444 },
stdout: '/logs/stdout.log',
stderr: '/logs/stderr.log',
sleepTime: 1000,
paddingTime: 5000,
maxSleepCount: 1000
};
const monitor = Revive(options);
monitor.on('start', function () {
console.log(monitor.toJSON());
});
monitor.start();
arg: Array
REQUIRED arguments or node script
cwd: String
REQUIRED current working directory
cmd: String
OPTIONAL defaults to process.execPath basically the systems node path
name: String
OPTIONAL name
stdout: String
OPTIONAL pipe to file path (event will still execute)
stderr: String
OPTIONAL pipe to file path (event will still execute)
sleepTime: 1000
DEFAULT sleep between revives (milliseconds)
paddingTime: 5000
DEFAULT padding between reset of sleeps
(milliseconds)
maxSleepCount: 1000
DEFAULT revives between sleepTime
+ paddingTime
(1000 trigger crash)
env: {}
DEFAULT environment variables
data: {}
DEFAULT custom object
Note: less paddingTime
triggers more frequent crashes
monitor.start()
Starts the monitor
monitor.stop()
Stops the monitor (kills the process if its running with SIGKILL)
monitor.restart()
Restarts the monitor by stopping then starting (process must be started)
monitor.toJSON()
Creates a stringyifiable object
monitor.on('start', callback)
Warning async so process may not be available immediately.
monitor.on('stop', callback)
The process and it's tree has been fully killed.
monitor.on('restart', callback)
Same as starting then stopping.
monitor.on('error', callback)
Emitted an error passing (data)
.
monitor.on('stdout', callback)
Emitted an stdout passing (data)
.
monitor.on('stderr', callback)
Emitted an stderr passing (data)
.
monitor.on('crash', callback)
Triggered when sleeps
equals maxSleepCount
monitor.on('exit', callback)
Exited passing (code, signal)
. Triggered on crash, stop, sleep, and restart.
You can use this package as is in any project even for profit.
You can indirectly charge others to use your project which contains the original unmodified code of this package.
You can submit a request to modify the code. Any modification accepted are adopted as if the original author modified it.
You can't charge others to directly or exclusively use this package.
You can't modify the code in anyway accept in accordance with the original author's permission.
FAQs
Process Management Tool | Auto Restarts | Advanced Events | And More
The npm package revive receives a total of 0 weekly downloads. As such, revive popularity was classified as not popular.
We found that revive 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.