https://github.com/nfischer/shelljs-plugin-clear
A ShellJS plugin for the clear command
https://github.com/nfischer/shelljs-plugin-clear
shelljs shelljs-plugin
Last synced: 3 months ago
JSON representation
A ShellJS plugin for the clear command
- Host: GitHub
- URL: https://github.com/nfischer/shelljs-plugin-clear
- Owner: nfischer
- License: mit
- Created: 2016-08-09T21:38:18.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2025-03-09T00:13:47.000Z (4 months ago)
- Last Synced: 2025-03-25T03:51:11.500Z (3 months ago)
- Topics: shelljs, shelljs-plugin
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# shelljs-plugin-clear
[](https://github.com/nfischer/shelljs-plugin-clear/actions/workflows/main.yml)
[](https://www.npmjs.com/package/shelljs-plugin-clear)
[](https://github.com/shelljs/shelljs/wiki/Using-ShellJS-Plugins)A [ShellJS](https://github.com/shelljs/shelljs) plugin for the `clear()` command
for REPL use.## Installation
```bash
$ npm install --save shelljs
$ npm install --save shelljs-plugin-clear
```## Usage
To use this plugin in your REPL, include it like so:
```
> require('shelljs-plugin-clear');
> var shell = require('shelljs');
> shell.clear();
```## Writing plugins
If you're interested in taking a look at the current state of the plugin API,
take a look at [index.js](index.js). This has helpful comments explaining the
necessary boilerplate for writing a plugin. For an example usage of the plugin,
take a look at [test/test.js](test/test.js).