
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.
exit-on-changes
Advanced tools
Exit a node/io.js process when changes to source files in the current directory are detected
exit-on-changes quits your node/io.js program when changes to source files are detected, leaving the parent process or shell to actually start it again. This avoids some of the problems with other solutions that must spawn two io.js processes or prevent you from using your shell aliases. exit-on-changes is particularly useful (vs. the alternatives) in Cygwin environments, but works elsewhere too.
In your project, run:
npm install exit-on-changes --save
or install from the GitHub repo:
npm install ludios/exit-on-changes --save
Somewhere in your program:
require('exit-on-changes');
Then start your program with the environmental variable EXIT_ON_CHANGES_ENABLED=1
.
This will exit on changes to source files in the current directory. To actually
have the program restart in a loop, use this
restarter()
function for zsh, or write a similar loop.
Example:
restarter EXIT_ON_CHANGES_ENABLED=1 iojs app.js
FAQs
Exit a node/io.js process when changes to source files in the current directory are detected
The npm package exit-on-changes receives a total of 1 weekly downloads. As such, exit-on-changes popularity was classified as not popular.
We found that exit-on-changes 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.