qiao-console
v4.5.1
Published
nodejs console tool
Downloads
710
Maintainers
Readme
qiao-console
nodejs 下 console 常见 api 封装
install
安装
npm i qiao-console
use
使用
// cjs
const { clear, writeLine } = require('qiao-console');
// mjs
import { clear, writeLine } from 'qiao-console';
api
clear
清空 console
clear();
writeLine
在 console 的某一行输出信息
- line
- 类型: number
- 说明: 行数
- content
- 类型: string
- 说明: 内容
writeLine(line, content);
others
// clear line
clearLine();
// move to
moveTo(x, y);
// write
write(msg);
// write line xy
writeLineXY(x, y, msg);