Lines Matching refs:cat
32 const cat = spawn('cat'); constant
33 cat.stdin.write('hello');
34 cat.stdin.write(' ');
35 cat.stdin.write('world');
37 assert.strictEqual(cat.stdin.writable, true);
38 assert.strictEqual(cat.stdin.readable, false);
40 cat.stdin.end();
44 cat.stdout.setEncoding('utf8');
45 cat.stdout.on('data', mustCallAtLeast((chunk) => {
50 cat.stdout.on('end', mustCall());
52 cat.stderr.on('data', mustNotCall());
54 cat.stderr.on('end', mustCall());
56 cat.on('exit', mustCall((status) => {
60 cat.on('close', mustCall(() => {