# is-powershell

> Node.js - Detect if the terminal is powershell

Latest version **3.0.0** (published 2025-12-20) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2025-12-20 |
| First published | 2018-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22 |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | GENTILHOMME Thomas |
| Maintainers | fraxken |
| Keywords | is, powershell |

## Links

- npm: https://www.npmjs.com/package/is-powershell
- Repository: https://github.com/fraxken/is-powershell
- Homepage: https://github.com/fraxken/is-powershell#readme
- Issues: https://github.com/fraxken/is-powershell/issues
- npm.io page: https://npm.io/package/is-powershell

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2025-12-20
- 2.0.0 — 2021-11-01
- 1.1.2 — 2019-09-17
- 1.1.1 — 2018-12-23
- 1.1.0 — 2018-12-22
- 1.0.0 — 2018-12-22

## README

# is-powershell
![version](https://img.shields.io/badge/dynamic/json.svg?url=https://raw.githubusercontent.com/fraxken/is-powershell/master/package.json&query=$.version&label=Version)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/fraxken/is-powershell/commit-activity)
![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)
![size](https://img.shields.io/github/languages/code-size/fraxken/is-powershell)
[![Known Vulnerabilities](https://snyk.io//test/github/fraxken/is-powershell/badge.svg?targetFile=package.json)](https://snyk.io//test/github/fraxken/is-powershell?targetFile=package.json)

Node.js - Detect if the terminal is powershell

## Getting started
This package is available in the Node Package Repository and can be easily installed with [npm](https://docs.npmjs.com/getting-started/what-is-npm) or [yarn](https://yarnpkg.com).

```bash
$ npm i is-powershell
# or
$ yarn add is-powershell
```

## Usage example
```js
const isPowershell = require("is-powershell");

async function main() {
    const ret = await isPowershell();
    console.log(`is parent pid is powershell ? ${ret}`);
}
main().catch(console.error);
```

## Licence
MIT

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