Rie*_*u͢s 4 node.js graphicsmagick
我正在使用Node.js模块gm(Github)进行GraphicsMagic(链接).
如何确定模块所需的GraphicsMagic软件是否已在当前node.js机器上安装并完全正常运行?(我想在我的服务器的初始化过程中检查这个)gm
您可以调用命令行工具并检查输出.
var exec = require('child_process').exec;
exec("gm", function (error, stdout, stderr) {
// Validate the output with one of the parameters.
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2163 次 |
| 最近记录: |