npm.io
3.0.0 • Published 9 months ago

is-powershell

Licence
MIT
Version
3.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
3

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

Keywords