https://github.com/stevenvachon/cli-clear
Cross-platform terminal screen clear.
https://github.com/stevenvachon/cli-clear
cli command-line cross-platform nodejs
Last synced: 12 months ago
JSON representation
Cross-platform terminal screen clear.
- Host: GitHub
- URL: https://github.com/stevenvachon/cli-clear
- Owner: stevenvachon
- License: mit
- Created: 2014-01-22T15:06:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-02-07T11:20:30.000Z (over 9 years ago)
- Last Synced: 2025-06-07T08:17:02.059Z (about 1 year ago)
- Topics: cli, command-line, cross-platform, nodejs
- Language: JavaScript
- Homepage:
- Size: 185 KB
- Stars: 16
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# cli-clear [](https://npmjs.org/package/cli-clear)
> Cross-platform terminal screen clear for Node.js
ANSI escape codes don't always work in Windows.
## Getting Started
[Node.js](http://nodejs.org/) `>= 0.8` is required. To install, type this at the command line:
```
npm install cli-clear --save-dev
```
### Usage
```js
var clear = require("cli-clear");
clear();
```
## Release History
* 1.0.4 added Node 0.12+ support
* 1.0.3 minor performance enhancements
* 1.0.2 package.json optimization
* 1.0.1 nearly pointless fix
* 1.0.0 fixed extra line break issue
* 0.1.0 initial release