summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Robinson Young <kyle@dontkry.com>2012-08-11 10:56:04 -0700
committerBen Noordhuis <info@bnoordhuis.nl>2012-08-12 00:08:43 +0200
commit4ef808ec0af61011f6015c29deb4bcc063845e8b (patch)
tree6c6e0980b96b3879b6e7ebabcfe424c1daf4f17d
parent64ac54a64d68c1fffd352d0453d81b6c3c0455b0 (diff)
downloadnode-new-4ef808ec0af61011f6015c29deb4bcc063845e8b.tar.gz
doc: remove unused util from child_process
-rw-r--r--doc/api/child_process.markdown6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/api/child_process.markdown b/doc/api/child_process.markdown
index 76a785b68e..092cb31e29 100644
--- a/doc/api/child_process.markdown
+++ b/doc/api/child_process.markdown
@@ -266,8 +266,7 @@ Use `env` to specify environment variables that will be visible to the new proce
Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit code:
- var util = require('util'),
- spawn = require('child_process').spawn,
+ var spawn = require('child_process').spawn,
ls = spawn('ls', ['-lh', '/usr']);
ls.stdout.on('data', function (data) {
@@ -285,8 +284,7 @@ Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit cod
Example: A very elaborate way to run 'ps ax | grep ssh'
- var util = require('util'),
- spawn = require('child_process').spawn,
+ var spawn = require('child_process').spawn,
ps = spawn('ps', ['ax']),
grep = spawn('grep', ['ssh']);