# clear

> Clear the terminal screen if possible

Latest version **0.1.0** (published 2018-02-27) · 0 weekly downloads

## Install

```sh
npm install clear
pnpm add clear
yarn add clear
bun add clear
```

## Health

**Score 18/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-02-27 |
| First published | 2012-07-29 |
| Weekly downloads | 0 |
| TypeScript types | separate (@types/clear) |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 114 |
| Author | Dave Eddy |
| Maintainers | bahamas10 |
| Keywords | ansi, clear, terminal |

## Links

- npm: https://www.npmjs.com/package/clear
- Repository: https://github.com/bahamas10/node-clear
- Homepage: https://github.com/bahamas10/node-clear#readme
- Issues: https://github.com/bahamas10/node-clear/issues
- npm.io page: https://npm.io/package/clear

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-02-27
- 0.0.1 — 2012-07-30
- 0.0.0 — 2012-07-29

## 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

---
_Source: https://npm.io/package/clear · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
