autoinstallers/install/secu/make/node_modules/cmd-promise/test/simple.js
2022-05-31 18:28:17 -05:00

18 lines
287 B
JavaScript

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)
})