1.0.4 • Published 5 years ago
node-powershell-await v1.0.4
Node-powershell await
Install:
npm install node-powershell-await
Example:
let Shell = require('node-powershell-await');
let ps = new Shell({
executionPolicy: 'Bypass',
noProfile: true
});
async function getNodeversion() {
ps.asyncAddCommand('node -v');
console.log(await ps.asyncInvoke());
}