@swiftmr/node-powershell

4.0.1 • Public • Published

Fork Version

Node-PowerShell

Build Status NPM Version NPM Downloads Coveralls Package Quality Closed Issues Dependencies License  GitHub Stars

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

Documentation

PowerShell 6

Microsoft
GitHub

TODO

  • [x] Full pwsh support.
  • [x] New docs & homepage.
  • [x] PSCommand class.
  • [x] CI improvements.
  • [ ] Postinstall script.
  • [ ] Improve error handling.
  • [ ] More examples.
  • [ ] More test + coverage.
  • [ ] Electron + Lambada POC.

License

MIT © Ran Cohen

Package Sidebar

Install

npm i @swiftmr/node-powershell

Weekly Downloads

3

Version

4.0.1

License

MIT

Unpacked Size

49.7 kB

Total Files

36

Last publish

Collaborators

  • yiho
  • chlrlrhs95
  • eeht1717