node-hide-console-window
v2.2.0
Published
A node module to toggle your app's console window visibility.
Downloads
391
Maintainers
Readme
node-hide-console-window
A node module to toggle your app's console window visibility. (Can be used with compilers like pkg)
Platforms
- Windows
What's new in 2.2.0
- Windows terminal support (thanks to GitHub user titushm)
Warning
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!
Installation
yarn add node-hide-console-window
or
npm install node-hide-console-window
Usage
Using import syntax
import {showConsole, hideConsole} from "node-hide-console-window";
//To hide your console just call:
hideConsole();
//To show it again use:
showConsole();
Using require syntax
const ConsoleWindow = require("node-hide-console-window");
//To hide your console just call:
ConsoleWindow.hideConsole();
//To show it again use:
ConsoleWindow.showConsole();
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.