![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's states, and automatically revives it.
npm install revive
const Revive = require('revive');
const monitor = Revive('/home/user/code/node/app/index.js', {
name: 'test', // set name
env: { PORT: 4444 }, // set environment variables
cwd: '/home/user/code/node/app/.', // set current working directory
stdout: __dirname + '/log', // (OPTIONAL) set a path for the stdout the stdout event will still execute
stderr: __dirname + '/log', // (OPTIONAL) set a path for the stderr the stderr event will still execute
sleepTime: 1000, // (DEFAULT) set time in milliseconds to sleep between revives
paddingTime: 5000 // (DEFAULT) set time in milliseconds between revives that will
// reset the sleeps so as not to trigger a crash
// less time enables more frequent executes of a crashes
maxSleepCount: 1000, // set amount of revives between sleepTime + paddingTime
})
monitor.start();
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
monitor.toJson()
Creates a stringyifiable object
monitor.on('start', callback)
The process was started. (Warning Async: child process may not be available)
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)
Process emitted an error passing (data)
.
monitor.on('stdout', callback)
Process emitted an stdout passing (data)
.
monitor.on('stderr', callback)
Process emitted an stderr passing (data)
.
monitor.on('crash', callback)
The process has crashed. This happens when the process exited then slept for the maxSleepCount.
monitor.on('exit', callback)
Process has fully exited passing (code, signal)
. This event takes place any time the child process has exited tigers are the following, crash, stop, sleep, and restart.
Basically you can use this package as is in any project even for profit. Conditions do apply. You cannot modify and redistribute the code base in anyway accept in accordance with the primary maintainer's permission. You can not charge others to directly or exclusively use this package. Indirectly it is acceptable to charge others but only to the extent that this package is used within the context of a project that uses this projects API.
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.