# customConsole **Repository Path**: fehyu/custom-console ## Basic Information - **Project Name**: customConsole - **Description**: 实现控制台滚动输出 - **Primary Language**: NodeJS - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-19 - **Last Updated**: 2022-04-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: Node ## README # 自定义console > 可以用其实现控制台追加输出和滚动输出 ## 使用方法 ```js const customConsole = require("./index"); customConsole.logBr('要输出的文字') ``` > 更详细的请参照 [demo.js](./demo.js) ## API #### log(text) 追加输出 - text - 要输出的文字 #### logBr(text) 追加输出后换行 - text - 要输出的文字 #### cover(text) 覆盖输出 - text - 要输出的文字 #### coverBr(text) 覆盖输出后换行 - text - 要输出的文字 #### br() 换行 ## 注意 - 结束时需要使用换行或者带换行的输出 - 不要再输出中间使用其他输出,比如不要在没换行前使用`console.log(text)`