# qiao-console

> nodejs console tool

Latest version **5.0.0** (published 2025-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install qiao-console
pnpm add qiao-console
yarn add qiao-console
bun add qiao-console
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2025-07-25 |
| First published | 2022-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | uikoo9 <uikoo9@qq.com> |
| Maintainers | npm_insistime |
| Keywords | nodejs, console, clearLine, clear |

## Links

- npm: https://www.npmjs.com/package/qiao-console
- Repository: https://github.com/uikoo9/qiao-nodejs
- Homepage: https://code.vincentqiao.com/#qiao-console
- Issues: https://github.com/uikoo9/qiao-nodejs/issues
- npm.io page: https://npm.io/package/qiao-console

## Recent versions

- 5.0.0 (latest) — 2025-07-25
- 4.7.2 — 2024-12-04
- 4.5.1 — 2024-03-07
- 4.4.2 — 2024-02-17
- 4.3.0 — 2023-11-15
- 4.2.6 — 2023-11-14
- 4.1.1 — 2023-10-09
- 4.0.0 — 2023-10-05
- 3.4.7 — 2023-09-08
- 3.2.7 — 2023-05-03
- 3.1.5 — 2023-04-14
- 3.1.4 — 2023-04-13
- 3.1.2 — 2023-04-13
- 3.1.1 — 2023-04-08
- 3.0.0 — 2023-04-08
- … 11 more at https://npm.io/package/qiao-console/versions

## README

## qiao-console

[![npm version](https://img.shields.io/npm/v/qiao-console.svg?style=flat-square)](https://www.npmjs.org/package/qiao-console)
[![npm downloads](https://img.shields.io/npm/dm/qiao-console.svg?style=flat-square)](https://npm-stat.com/charts.html?package=qiao-console)

nodejs 下 console 常见 api 封装

## install

安装

```shell
npm i qiao-console
```

## use

使用

```javascript
// cjs
const { clear, writeLine } = require('qiao-console');

// mjs
import { clear, writeLine } from 'qiao-console';
```

## api

### clear

清空 console

```javascript
clear();
```

### writeLine

在 console 的某一行输出信息

- line
  - 类型: number
  - 说明: 行数
- content
  - 类型: string
  - 说明: 内容

```javascript
writeLine(line, content);
```

### others

```javascript
// clear line
clearLine();

// move to
moveTo(x, y);

// write
write(msg);

// write line xy
writeLineXY(x, y, msg);
```

---
_Source: https://npm.io/package/qiao-console · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
