A node module to toggle your app's console window visibility. (Can be used with compilers like pkg)
- Windows
- Windows terminal support (thanks to GitHub user titushm)
Recently this package have been a victim of a typosquatting attack where some bad actors created a clone of this package but appended a 's' at the end, this package isn't and never was compromised, but if you want you can take a look at the source code or build it yourself, always check your packages before installing, take care out there!
yarn add node-hide-console-window
or
npm install node-hide-console-window
import {showConsole, hideConsole} from "node-hide-console-window";
//To hide your console just call:
hideConsole();
//To show it again use:
showConsole();
const ConsoleWindow = require("node-hide-console-window");
//To hide your console just call:
ConsoleWindow.hideConsole();
//To show it again use:
ConsoleWindow.showConsole();
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.