1. clear
Clear the terminal screen if possible
clear
Package: clear
Created by: bahamas10
Last modified: Sat, 27 May 2023 00:56:00 GMT
Version: 0.1.0
Downloads: 1,732,441
Repository: https://github.com/bahamas10/node-clear

Install

npm install clear
yarn add clear

clear

Clear the terminal screen if possible

Usage

 var clear = require('clear');
clear();

Example

Node Clear

clear([opts])

  • opts (Object)
  • opts.fullClear (Boolean) Defaults to true, setting this to false will
    prevent this module from clearing the screen. This will not remove anything
    from the screen, but instead move your cursor to position 0,0. Much like
    printing a \r instead of a \n to reset the current line of output.

Installation

npm install clear

ANSI Codes

http://www.inwap.com/pdp10/ansicode.txt

License

MIT

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code