summaryrefslogtreecommitdiff
path: root/test/fixtures/echo.js
blob: f206b515c7c627801e1f8162d0631d0ec507d763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
common = require("../common");
assert = common.assert;

common.print("hello world\r\n");

var stdin = process.openStdin();

stdin.addListener("data", function (data) {
  process.stdout.write(data.toString());
});

stdin.addListener("end", function () {
  process.stdout.end();
});