is-powershell
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

is-powershell

version Maintenance MIT size Known Vulnerabilities

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 or yarn.

$ npm i is-powershell
# or
$ yarn add is-powershell

Usage example

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

Readme

Keywords

Package Sidebar

Install

npm i is-powershell

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

4.11 kB

Total Files

5

Last publish

Collaborators

  • fraxken