Skip to content

Instantly share code, notes, and snippets.

@ericwooley
Created July 7, 2017 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericwooley/8c23c0867acd64a4adb85f42e86c9ee2 to your computer and use it in GitHub Desktop.
Save ericwooley/8c23c0867acd64a4adb85f42e86c9ee2 to your computer and use it in GitHub Desktop.
Medium: Make output readable again. Controlling your IO streams in node. - 1
// 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