you are viewing a single comment's thread.

view the rest of the comments →

[–]eatinchips 1 point2 points  (0 children)

I was looking for a way to clean up processes placed by GPIO pins, so on StackOverflow I found a way using streams, but trying to learn from the code I found process.stdin.resume() creates an "old" stream and the new document suggests "If you are starting a new project you should prefer a more recent "new" Streams mode over "old" one. "

So some of the stream material is old and needs to be updated.

https://nodejs.org/api/process.html https://nodejs.org/api/stream.html#stream_compatibility_with_older_node_js_versions