Sha256: 24db69747c20f6a0326b560b7cc1b22c4d026a20a7b4765b259d63af400d4439

Contents?: true

Size: 602 Bytes

Versions: 17

Compression:

Stored size: 602 Bytes

Contents

var system = require('system');

system.stdout.write('Hello, system.stdout.write!');
system.stdout.writeLine('\nHello, system.stdout.writeLine!');

system.stderr.write('Hello, system.stderr.write!');
system.stderr.writeLine('\nHello, system.stderr.writeLine!');

system.stdout.writeLine('system.stdin.readLine(): ');
var line = system.stdin.readLine();
system.stdout.writeLine(JSON.stringify(line));

// This is essentially a `readAll`
system.stdout.writeLine('system.stdin.read(5): (ctrl+D to end)');
var input = system.stdin.read(5);
system.stdout.writeLine(JSON.stringify(input));

phantom.exit(0);

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
hooch-0.4.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
hooch-0.4.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
hooch-0.3.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
hooch-0.2.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
hooch-0.2.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
hooch-0.1.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
hooch-0.0.8 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
hooch-0.0.7 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
hooch-0.0.6 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
entangled-0.0.16 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
entangled-0.0.15 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
entangled-0.0.14 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
entangled-0.0.13 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
entangled-0.0.12 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
entangled-0.0.11 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js
entangled-0.0.10 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/stdin-stdout-stderr.js