File: basic

package info (click to toggle)
node-readable-stream 2.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,128 kB
  • sloc: makefile: 17; sh: 12
file content (12 lines) | stat: -rwxr-xr-x 181 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

node <<EOF
var Readable = require('readable-stream/').Readable;

var rs = new Readable;
rs.push('beep ');
rs.push('boop\n');
rs.push(null);

rs.pipe(process.stdout);
EOF