Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bahamas10/node-clear
Clear the terminal screen if possible
https://github.com/bahamas10/node-clear
Last synced: 5 days ago
JSON representation
Clear the terminal screen if possible
- Host: GitHub
- URL: https://github.com/bahamas10/node-clear
- Owner: bahamas10
- Created: 2012-07-29T06:23:11.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-03-16T08:23:25.000Z (almost 4 years ago)
- Last Synced: 2024-12-30T03:16:53.010Z (12 days ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 115
- Watchers: 3
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-npm - clear - 清除屏幕(同命令 clear) (3. 命令行程序 / 3.1 开发库)
- awesome-nodejs - clear - 清空终端屏幕 (Uncategorized / Uncategorized)
README
clear
=====Clear the terminal screen if possible
Usage
-----``` js
var clear = require('clear');
clear();
```Example
-------![Node Clear](http://daveeddy.com/static/media/github/node-clear.gif)
### 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