https://github.com/pofider/node-silent-spawn
Spawn detached process without opening command line on windows
https://github.com/pofider/node-silent-spawn
nodejs spawn
Last synced: about 2 months ago
JSON representation
Spawn detached process without opening command line on windows
- Host: GitHub
- URL: https://github.com/pofider/node-silent-spawn
- Owner: pofider
- License: mit
- Created: 2017-02-07T13:17:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T18:00:24.000Z (almost 9 years ago)
- Last Synced: 2025-02-01T14:44:41.222Z (11 months ago)
- Topics: nodejs, spawn
- Language: C#
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# silent-spawn
**Spawn detached process without opening command line on windows**
node.js always opens an extra command line for the child process if you run spawn with detached option. This is quite annoying if you just want to run a script on the background which is not killed when the parent process ends. This package eliminates this problem by passing spawn command through another .net based executable on windows. On linux you get the unchanged native spawn without proxy.
```JS
var spawn = require('silent-spawn')
spawn('node', ['script.js'], { detached: true })
```