1.1.1 • Published 7 years ago

console-clear v1.1.1

Weekly downloads
60,792
License
MIT
Repository
github
Last release
7 years ago

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

@flowacademy/dng@cyberspace-dev/cliplaygrounds@everything-registry/sub-chunk-1373wl-preact-clixalwatchersubhalingamdsuddensucrespotitermtesting-farm-viewersvavatarsvb@cond/preact-cli@confy/core@rschristian/junkitisaminjsview-scratch-to-jsjsx2mp-clijsview-cliteselagen@alifd/build-plugin-meet-component@alifd/build-plugin-meet-docs@aligov/plugin-gff-h5-module@aligov/plugin-gff-h5-remote-component@alilc/build-plugin-lce@altipla/genio@buganto/client@adam-lynch/sirv-cli@dblechoc/preact-cli@digiforce-cloud/build-plugin-component@constgen/neutrino-progress@danieltanfh95/sirv-clixunit-viewerwebpack-messages@hop-protocol/v2-bundle-relayer@hop-protocol/hop-node@hyext/builder-zabin@gaiama/cuid-cli@ethglobal/speed@gerbera/cli@insertish/sirv-cli@mebbigfrontend/ts-cli@epimodev/sarv@klevn/dgraph@jeli/cli@nordjs/cli@quoine/preact-climohammadaminnpm-sebi-test-packagensfw-apirolib-clireact-codegen-clirax-multi-pages-settingsrax-plugin-apprax-plugin-componentrax-plugin-multi-pagesrax-quickapp-webpack-pluginscriptworks-vitaq-clientscripts-corenext-build-plugin-componentpogo-clipolymerx-clipreact-clipreact-cli-omipreact-cli-typescriptsirv-cligingoinitgpktgiffyglyphs-markdown-makerlocaldev-tuiliamin-test-001@wii/create-wii@we-make-websites/tannoy@xxyyzz2050/cli@zalastax/nolb-conso@svelte-docs/serveralirezacn-build-plugin-componentcreate-yyycuid-clibeekeeper-utilbo7expressbuild-ice3-gcp-runtimebuild-plugin-rax-to-reactbuild-plugin-multi-demo-portalbuild-plugin-one-code-for-componentsbuild-plugin-rax-miniapp-pluginbuild-plugin-rax-componentbuild-plugin-rax-halo-componentbuild-plugin-cloud-rax-appbuild-plugin-componentbuild-plugin-fushen-rax-appbuild-plugin-component-multipleec-scriptsesp3d-mock-serverfind-the-oddfast.comfpzgc-generate
1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago