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

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin