# node-powershell

> Node.js binding for PowerShell

Latest version **5.0.1** (published 2021-11-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-powershell
pnpm add node-powershell
yarn add node-powershell
bun add node-powershell
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.1 |
| Published | 2021-11-08 |
| First published | 2015-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 302 |
| Author | Ran Cohen |
| Maintainers | rannn505 |
| Keywords | child-shell, node-shell, node-powershell, powershell, windows powershell, powershell core, pwsh, node-ps, ps, microsoft, spwan, cmd, command, script, commandline, shell, terminal, cross-platform, unix, linux, macos, windows |

## Links

- npm: https://www.npmjs.com/package/node-powershell
- Repository: https://github.com/rannn505/child-shell
- Homepage: https://github.com/rannn505/child-shell/tree/master/packages/node-powershell#readme
- Issues: https://github.com/rannn505/child-shell/issues
- npm.io page: https://npm.io/package/node-powershell

## Dependencies (2)

- [is-wsl](https://npm.io/package/is-wsl.md) ^2.2.0
- [child-shell](https://npm.io/package/child-shell.md) ^5.0.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 5.0.1 (latest) — 2021-11-08
- 5.0.0-next.3 (next) — 2021-01-27
- 5.0.0 — 2021-11-07
- 5.0.0-next.1 — 2020-05-12
- 5.0.0-alpha.0 — 2020-05-02
- 4.0.0 — 2019-02-12
- 3.3.1 — 2017-10-28
- 3.3.0 — 2017-10-28
- 3.2.0 — 2017-10-11
- 3.1.1 — 2017-03-02
- 3.1.0 — 2017-03-02
- 3.0.1 — 2016-09-30
- 3.0.0 — 2016-09-22
- 2.0.2 — 2016-07-13
- 2.0.1 — 2016-07-13
- … 6 more at https://npm.io/package/node-powershell/versions

## README

# `node-powershell`

> Node.js binding for PowerShell

[![NPM Version](https://img.shields.io/npm/v/node-powershell.svg?style=flat-square)](https://www.npmjs.com/package/node-powershell) [![NPM Downloads](https://img.shields.io/npm/dt/node-powershell.svg?style=flat-square)](https://npm-stat.com/charts.html?package=node-powershell)

## Installation

```bash
$ npm i -S node-powershell
$ yarn add node-powershell
```

## Usage

```javascript
import { PowerShell } from 'node-powershell';
PowerShell.$`echo "hello from PowerShell"`;
```

> See **child-shell** [documentation](https:/<>) and [playground](https://github.com/rannn505/child-shell/blob/master/playground/index.ts) for more use cases

## Resources

- [child-shell Documentation](https:/<>)
- [PowerShell Documentation](https://microsoft.com/PowerShell)
- [PowerShell Repo](https://github.com/PowerShell/PowerShell)
- [Node.js Documentation](https://nodejs.org/en/docs/)

---
_Source: https://npm.io/package/node-powershell · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
