0.1.1 • Published 3 years ago

flash-console v0.1.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

介绍

用于小工程的控制台内容滚动刷新

使用方法

引入flash-console包

npm install flash-console

代码中使用

flashConsole.log('test')
flashConsole.log('key', 'test')

注意:

  • 调用log时,会执行console.clear()将当前控制台输出的内容清空,然后重新输出flashConsole中搜集到的日志,所以使用时应将所有输出内容都用flashConsole输出
  • 因实现原理有性能忧虑,所以此工具仅适用于小工具,并不适合更大规模的工程
0.1.1

3 years ago

0.1.0

3 years ago