Created
July 7, 2017 18:00
-
-
Save ericwooley/8c23c0867acd64a4adb85f42e86c9ee2 to your computer and use it in GitHub Desktop.
Medium: Make output readable again. Controlling your IO streams in node. - 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// silent because by default shelljs copies output to your main | |
// terminal output. async because shelljs blocks by default. | |
const {stdout, stderr} = shelljs.exec('ping www.google.com', {silent: true, async: true}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment