clear-output

clear terminal output like a pro

Usage no npm install needed!

<script type="module">
  import clearOutput from 'https://cdn.skypack.dev/clear-output';
</script>

README

clear-output

NPM version NPM downloads

A cli utils that can clear your terminal output.

Install

yarn add clear-output

Usage

const clear = require('clear-output')

const str = 'you will see this line\nyou won\'t see \nthese lines'

console.log(str)

clear(str)

And you will see this:

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

clear-output © lijsh, Released under the MIT License.
Authored and maintained by lijsh with help from contributors (list).

github.com/lijsh · GitHub @lijsh · Twitter @lijiashen