Package Exports
- console-clear
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (console-clear) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
console-clear
Clear the console, cross-platform
Install
$ npm install --save console-clear
Usage
const clear = require('console-clear');
clear(true);
//=> allow scrollback
clear();
//=> no scrollback, if supported
API
clear(keepHistory)
keepHistory
Type: boolean
Default: false
Clears the console, but keeps the scrollback history intact.
For Windows: This may be the only behavior available.
ANSI control sequences, like clearing the scrollback buffer, are only handled in recent versions of the native Windows console host.
License
MIT © Luke Edwards