Read from stdin

18 views
Skip to first unread message

klo

unread,
Jun 21, 2016, 9:00:23 AM6/21/16
to phantomjs
Hi,

by using:

========================================
fs = require('fs');
page.content = fs.read('/dev/stdin');
========================================

stdin can be read from *nix. 

How can I access stdin from Windows?


Thanks

klo

unread,
Jun 21, 2016, 9:30:31 AM6/21/16
to phantomjs
It's in system: "system.standardin.read()"
Reply all
Reply to author
Forward
0 new messages