Skip to content

Commit 916cb5a

Browse files
committed
Wip
1 parent 905514d commit 916cb5a

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

child-processes/index.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ child.on('exmessageit', function (code, signal) {
4040
spawn( ).stdout.pipe(process.stdout)
4141

4242
```
43+
44+
_Not reviwewed/edited after this_
45+
46+
47+
48+
49+
4350
The returned process object will hold a property for each std type represented as a Stream: .stdin - WriteStream, .stout - ReadStream and finally .stderr - ReadStream. Accordingly, if we would like to run git log through a Node process and print it to the console we would do something like the following:
4451

4552
Every child process also gets the three standard stdio streams, which we can access using child.stdin, child.stdout, and child.stderr.
@@ -79,10 +86,5 @@ Why is this module called child_process and not just process? First of all, not
7986
8087
```
8188

82-
83-
84-
8589
More reading: [Node.js Child Processes: Everything you need to know
86-
](https://www.freecodecamp.org/news/node-js-child-processes-everything-you-need-to-know-e69498fe970a/)
87-
88-
90+
](https://www.freecodecamp.org/news/node-js-child-processes-everything-you-need-to-know-e69498fe970a/)

0 commit comments

Comments
 (0)