node-child-process-args:使用自检转义 node.js 的 shell 参数

时间:2021-06-07 23:56:46
【文件属性】:
文件名称:node-child-process-args:使用自检转义 node.js 的 shell 参数
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-07 23:56:46
JavaScript 用法: var spawn = require ( 'child_process' ) . spawn ; var childProcessArgs = require ( 'child-process-args' ) ; childProcessArgs ( [ 'rsync' , '-aHC' , 'root@machine2:/remotePath' , './Local Path' , '--exclude' , '/Exclude me/' ] ) . then ( function ( rsyncCommand ) { var child = spawn ( 'ssh' , [ 'root@machine1' , rsyncCommand ] , { stdio : 'inherit' } ) ; } ) ;
【文件预览】:
node-child-process-args-master
----.gitignore(13B)
----package.json(655B)
----.travis.yml(49B)
----index.js(1KB)
----README.md(521B)
----test()
--------test.js(2KB)

网友评论