autoinstallers/install/secu/make/node_modules/cmd-promise/test/simple.js

18 lines
287 B
JavaScript
Raw Permalink Normal View History

2022-05-31 19:28:17 -04:00
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)
})