brighten

0.0.1 • Public • Published

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()
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    58
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    58

Package Sidebar

Install

npm i brighten

Weekly Downloads

37

Version

0.0.1

License

MIT

Last publish

Collaborators

  • timneutkens