1

Can slimerjs take a webpage as input via stdin?

E.g. generateHtmlFileAndWriteToStdOut | slimerjs

I want to use slimerjs in a script pipeline.

Learner
  • 2,459
  • 4
  • 23
  • 39
  • Probably not considering that they added stdout support in the newest version 0.9.6. – Artjom B. Jul 25 '15 at 11:00
  • For the curious (and for people like me who misunderstood your question on first read, and went to post an answer involving `xargs`!) here is an example of how to do it in PhantomJS: http://stackoverflow.com/a/17286691/841830 (that also shows how to render a pdf to stdout) – Darren Cook Jul 26 '15 at 17:27

1 Answers1

1

The present version does not support stdin.

When version 1.0 is released, the product will have api parity with phantom js and support stdin.

Learner
  • 2,459
  • 4
  • 23
  • 39