Remove util.print from docs
authorRyan Dahl <ry@tinyclouds.org>
Mon, 8 Nov 2010 01:22:36 +0000 (17:22 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 8 Nov 2010 01:22:56 +0000 (17:22 -0800)
Use process.stdout.write()

doc/api/_toc.markdown
doc/api/all.markdown
doc/api/appendix_1.markdown
doc/api/child_processes.markdown
doc/api/index.markdown
doc/api/util.markdown

index a5e384c..496a611 100644 (file)
@@ -30,4 +30,4 @@
 * [Assertion Testing](assert.html)
 * Appendixes
        * [Appendix 1: Recommended Third-party Modules](appendix_1.html)
-       * [Appendix 2: Deprecated API's](appendix_2.html)
\ No newline at end of file
+       * [Appendix 2: Deprecated API's](appendix_2.html)
index a6eb173..43d5a15 100644 (file)
@@ -30,4 +30,4 @@
 
 # Appendixes
 @include appendix_1
-@include appendix_2
\ No newline at end of file
+@include appendix_2
index 53e9ee7..3274fda 100644 (file)
@@ -41,4 +41,4 @@ elsewhere.
   [expresso](http://github.com/visionmedia/expresso),
   [mjsunit.runner](http://github.com/tmpvar/mjsunit.runner)
 
-Patches to this list are welcome.
\ No newline at end of file
+Patches to this list are welcome.
index 440a83a..d186a94 100644 (file)
@@ -74,11 +74,11 @@ Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit cod
         ls    = spawn('ls', ['-lh', '/usr']);
 
     ls.stdout.on('data', function (data) {
-      util.print('stdout: ' + data);
+      console.log('stdout: ' + data);
     });
 
     ls.stderr.on('data', function (data) {
-      util.print('stderr: ' + data);
+      console.log('stderr: ' + data);
     });
 
     ls.on('exit', function (code) {
@@ -98,7 +98,7 @@ Example: A very elaborate way to run 'ps ax | grep ssh'
     });
 
     ps.stderr.on('data', function (data) {
-      util.print('ps stderr: ' + data);
+      console.log('ps stderr: ' + data);
     });
 
     ps.on('exit', function (code) {
@@ -109,11 +109,11 @@ Example: A very elaborate way to run 'ps ax | grep ssh'
     });
 
     grep.stdout.on('data', function (data) {
-      util.print(data);
+      console.log(data);
     });
 
     grep.stderr.on('data', function (data) {
-      util.print('grep stderr: ' + data);
+      console.log('grep stderr: ' + data);
     });
 
     grep.on('exit', function (code) {
@@ -148,8 +148,8 @@ output, and return it all in a callback.
 
     child = exec('cat *.js bad_file | wc -l', 
       function (error, stdout, stderr) {
-        util.print('stdout: ' + stdout);
-        util.print('stderr: ' + stderr);
+        console.log('stdout: ' + stdout);
+        console.log('stderr: ' + stderr);
         if (error !== null) {
           console.log('exec error: ' + error);
         }
index a9acffa..1a77450 100644 (file)
@@ -1 +1 @@
-@include _toc.markdown
\ No newline at end of file
+@include _toc.markdown
index cddf47d..1c077f6 100644 (file)
@@ -4,13 +4,6 @@ These functions are in the module `'util'`. Use `require('util')` to access
 them.
 
 
-### util.print(string)
-
-Like `console.log()` but without the trailing newline.
-
-    require('util').print('String with no newline');
-
-
 ### util.debug(string)
 
 A synchronous output function. Will block the process and