Package Exports
- node-powershell-updates
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-powershell-updates) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Node-PowerShell
Node-PowerShell taking advantage of two of the simplest, effective and easy tools that exist in the today technology world. On the one hand, NodeJS which made a revolution in the world of javascript, and on the other hand, PowerShell which recently came out with an initial open-source, cross-platform version, and by connecting them together, gives you the power to create any solution you were asked to, no matter if you are a programmer, an IT or a DevOps guy.
Installation
$ npm i -S node-powershell
$ yarn add node-powershell
Quick start
const Shell = require('node-powershell');
const ps = new Shell({
executionPolicy: 'Bypass',
noProfile: true
});
ps.addCommand('echo node-powershell');
ps.invoke()
.then(output => {
console.log(output);
})
.catch(err => {
console.log(err);
});
Documentation
PowerShell 6
TODO
- Full pwsh support.
- New docs & homepage.
- PSCommand class.
- CI improvements.
- Postinstall script.
- Improve error handling.
- More examples.
- More test + coverage.
- Electron + Lambada POC.