
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
daemonize-process
Advanced tools
Daemonize the current Node.js process
The module re-spawns the current process and then exits, which will lead to the new child process being adopted by init
or similar mechanisms, effectively putting the current process into the background.
Differences to the daemon
module include:
child_process.spawn
.process.env
after itself.$ npm i daemonize-process
import {daemonizeProcess} from "daemonize-process";
daemonizeProcess();
// below here the process is daemonized
The options
object can contain any valid child_process.spawn
option as well as these properties:
script
string - The path to the script to be executed. Default: The current script.arguments
Array - The command line arguments to be used. Default: The current arguments.node
string - The path to the Node.js binary to be used. Default: The current Node.js binary.exitCode
number - The exit code to be used when exiting the parent process. Default: 0
.By default the standard streams of the child are ignored (e.g. attached to /dev/null
or equivalent). If you need these streams, adjust the stdio
option.
© silverwind, distributed under BSD licence
FAQs
Daemonize the current Node.js process
The npm package daemonize-process receives a total of 6,291 weekly downloads. As such, daemonize-process popularity was classified as popular.
We found that daemonize-process demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.