Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trulymittal/nodejs-child-process-tutorial
Demonstration of child process in nodejs
https://github.com/trulymittal/nodejs-child-process-tutorial
Last synced: 7 days ago
JSON representation
Demonstration of child process in nodejs
- Host: GitHub
- URL: https://github.com/trulymittal/nodejs-child-process-tutorial
- Owner: trulymittal
- Created: 2021-01-03T19:32:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T13:58:32.000Z (over 3 years ago)
- Last Synced: 2023-03-03T08:00:24.873Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 7
- Watchers: 2
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demonstration of Child Process in nodejs
This is a simple repo, to explain - how to use **child-process** in Nodejs.
Each of the methods i.e. `exec execFile spawn & fork` is explained in this repo - with their respective file names.
- **exec** - `exec_demo.js`
- **execFile** - `exec_file_demo.js` (also uses `somefile.sh`)
- **spawn** - `spawn_demo.js`
- **fork** - `fork_demo.js` (also uses `longtask.js`)## Note (for windows user)
You should use (or modify) the commands that are compatible with your operating system. for example: in **exec_demo.js** we used `ls -lh`, the windows compatible would be `dir` commmand, so you need to change that accordingly.
## Tutorial (YouTube)
You can also watch the video related to the explanation on youtube:
[exec, execFile, spawn] (https://www.youtube.com/watch?v=bbmFvCbVDqo)
[fork] (https://www.youtube.com/watch?v=7cFNTD73N88&t=11s)
## Author
[Truly Mittal] (https://trulymittal.com)