Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

brighten

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brighten

Clear terminal screen but keep output history

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Brighten

Clear terminal screen but keep output history.

History

While working on friendly-errors-webpack-plugin to improve it for Next.js, I needed to clear the terminal screen without overriding previous output. Using ANSI escapes works for clearing the screen, but it will also override the output that's visible at that moment. So I created this simple solution to clear the screen but keep the history

Installation

npm install --save brighten

Usage

const brighten = require('brighten')

// clear screen when process is a TTY
if(process.stdout.isTTY) {
  brighten()
}

FAQs

Package last updated on 15 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts