Clear the console, cross-platform
npm install console-clear> Clear the console, cross-platform
```
$ npm install --save console-clear
`js
const clear = require('console-clear');
clear(true);
//=> allow scrollback
clear();
//=> no scrollback, if supported
`
#### keepHistory
Type: booleanfalse`
Default:
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-Console-Host-Enhancements).
MIT © Luke Edwards