qiao-console

4.5.1 • Public • Published

qiao-console

npm version npm downloads

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);

Package Sidebar

Install

npm i qiao-console

Weekly Downloads

23

Version

4.5.1

License

MIT

Unpacked Size

4.9 kB

Total Files

5

Last publish

Collaborators

  • npm_insistime