Socket
Book a DemoInstallSign in
Socket

node-powershell

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-powershell

Easily run PowerShell from your NodeJS app

Source
npmnpm
Version
3.3.1
Version published
Weekly downloads
19K
-42.43%
Maintainers
1
Weekly downloads
 
Created
Source

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');

let ps = new shell({
  executionPolicy: 'Bypass',
  noProfile: true
});

ps.addCommand('echo node-powershell')
ps.invoke()
.then(output => {
  console.log(output);
})
.catch(err => {
  console.log(err);
  ps.dispose();
});

API Reference

:memo: API reference
I've created a convenient and readable page, so you can enjoy the experience of learning and begin to use the module quickly and easily.

:fire: PowerShell 6.0

As you may have heard already, lately Microsoft is taking steps towards becoming an open source company. One of these steps, brings us [PowerShell 6.0][] , which is a cross-platform version of the amazing tool that we know and love from Windows. Node-PowerShell Welcomes the move, and started the current version, will fully support the new PS. Moreover, I will continue to follow the development of the new PS repo, and to update the module accordingly. Enjoy! [PowerShell 6.0]: https://github.com/PowerShell/PowerShell

License

MIT © Ran Cohen

Keywords

node-powershell

FAQs

Package last updated on 28 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts