Closed ishamf closed 8 years ago
Can you open an issue on Atom first? And comment a link here. process.stdin
is expected to exist in the Node.js ecosystem, so this is an Atom bug.
Ok, I've researched this a bit and it seems like it has something to do with how windows treats desktop apps, so I don't think it will be fixed anytime soon.
Disregarding windows quirks for a moment, I still think it's a good idea to load stdin lazily, if only to avoid running the stdin initialization code unnecessarily.
Fixed on recent versions of electron.
I encountered this while tracking a bug in an Atom extension I used. Apparently, in Atom accessing
process.stdin
throws an exception. This makes a huge library unusable there, since callingrequire('get-stdin')
accessesprocess.stdin
, even though the extension doesn't use it.