forked from PippCandy/autoinstallers
first commit
This commit is contained in:
17
install/secu/make/node_modules/cmd-promise/test/simple.js
generated
vendored
Normal file
17
install/secu/make/node_modules/cmd-promise/test/simple.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
const cmd = require('../cmd-promise')
|
||||
|
||||
console.log('cmd-promise: One or multiple commands.')
|
||||
|
||||
// const single = `node -v`
|
||||
|
||||
const multiple = `
|
||||
node -v
|
||||
npm -v
|
||||
`
|
||||
|
||||
cmd(multiple).then(out => {
|
||||
console.log('out =', out)
|
||||
}).catch(err => {
|
||||
console.log('err =', err)
|
||||
})
|
Reference in New Issue
Block a user