summaryrefslogtreecommitdiff
path: root/test/fixtures/echo.js
blob: 3aba96b8a79c447ae123adcdc43772744b854707 (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();
});