小编chu*_*njw的帖子

git添加了什么?(git add single dot)命令吗?

使用句点(或句号,单点)将文件添加到舞台时,我没有得到Git命令的含义:

$ git add .
Run Code Online (Sandbox Code Playgroud)

这是做什么的?

git git-add

43
推荐指数
2
解决办法
5万
查看次数

将标准输出管道传输到 node.js 中另一个进程的标准输入

我是 node.js 的新手,并试图连续执行两个进程,第一个进程的标准输出通过管道传输到第二个的标准输入。然后第二个进程的标准输出应该通过管道传输到变量 res 作为对 URL 请求的响应。代码在这里。一部分是别人写的,所以我可能有误解:

  var sox = spawn("sox", soxArgs)
  var rubberband = spawn("rubberband", rubberbandArgs)

  sox.stdout.pipe(rubberband.stdin)

  rubberband.stdout.pipe(res) #won't send to res anything, why?
  #rubberband.stdin.pipe(res) won't send to res anything, either!
  #sox.stdout.pipe(res) will work just fine

  sox.stdin.write(data)     
  sox.stdin.end() 
  #the actual sox process will not execute until sox.stdin is filled with data..?
Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激!我花了几个小时研究这个!

stdin pipe node.js

5
推荐指数
1
解决办法
5135
查看次数

标签 统计

git ×1

git-add ×1

node.js ×1

pipe ×1

stdin ×1