* [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)
[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.
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) {
});
ps.stderr.on('data', function (data) {
- util.print('ps stderr: ' + data);
+ console.log('ps stderr: ' + data);
});
ps.on('exit', function (code) {
});
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) {
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);
}