Node.js - Detect if the terminal is powershell
MIT License
Node.js - Detect if the terminal is powershell
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
const isPowershell = require("is-powershell");
async function main() {
const ret = await isPowershell();
console.log(`is parent pid is powershell ? ${ret}`);
}
main().catch(console.error);
MIT