Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的节点应用程序上,我试图弄清楚如何查看流的进度。我怎样才能告诉浏览器进度是什么?
这是我在服务器上使用的代码:
gm(readStream, 'img.jpg') .resize(width, height) .quality(quality) .stream(function (err, stdout, stderr) { stdout.pipe(res); });