Unknown method process.openStdin()

江枫思渺然 提交于 2019-12-05 03:06:14
porfirion

While writing the question I've found the answer :)

It is in source code of nodejs:

process.openStdin = function() {
  process.stdin.resume();
  return process.stdin;
};

But I wonder, why is it not described in documentation? If it is a function for private use only, why is it used by many people, who wrote about working with stdin?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!