A lightweight and powerful cross-platform console clearer for Node.js. conclean allows you to clear the terminal screen and optionally the scrollback buffer, ensuring a clean slate for your terminal output.
- π Cross-Platform: Works seamlessly on Windows, macOS, and Linux.
- β‘ Lightweight: No dependencies, minimal footprint.
- π οΈ Configurable: Choose whether to clear the scrollback buffer or just the terminal screen.
Install conclean via npm:
npm install concleanHere's how to use conclean in your Node.js project:
import conclean from 'conclean';
conclean();import conclean from 'conclean';
console.log('Before clearing...');
conclean();
console.log('This appears on a clean terminal!');conclean provides a reliable way to clean up your terminal output. Unlike other packages, it supports both clearing the screen and optionally resetting the scrollback buffer, giving you full control.
- Node.js: Version v12,v18,v20 and above
- Platforms: Windows, macOS, and Linux
conclean is licensed under the MIT License.
Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.
Developed by sumangal karan. Connect with me on Twitter or LinkedIn.