File: basic

package info (click to toggle)
node-readable-stream 3.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,672 kB
  • sloc: javascript: 19,789; makefile: 13; sh: 8
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