nw.js: process.stdin cannot be used

I’m trying to create a window that can receive input (messages) from stdin, but when I use process.stdin (or process.openStdin()) I receive the following error:

Error: Implement me. Unknown stdin file type!

<bountysource-plugin>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

About this issue

  • Original URL
  • State: open
  • Created 11 years ago
  • Reactions: 5
  • Comments: 28 (3 by maintainers)

Most upvoted comments

@derrickb yes, will look into it. I believe the issue is mostly for Windows.

+1

Any word from the team on this? It’s been open for a long time.

and what’s worse, @cotejp’s fix does not appear to work

Your use case might be different from mine, but my little fix (nwjs-j5-fix) is still working for me in version 0.27.1.

We can try to bypass using https://www.npmjs.com/package/nwjs-j5-fix

I created that package but I really wish I could stop using it. Can we hope for this issue to be bumped up the priority list anytime soon @rogerwang ?

We can try to bypass using https://www.npmjs.com/package/nwjs-j5-fix

I have written a module that wraps the process object replacing the standard streams with tcp streams so you can use them. nw-wrap