# @mytikas/tool-kit

> tool-kit

Latest version **0.1.6** (published 2025-04-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install @mytikas/tool-kit
pnpm add @mytikas/tool-kit
yarn add @mytikas/tool-kit
bun add @mytikas/tool-kit
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2025-04-15 |
| First published | 2023-08-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=16.0.0 |
| Dependencies | 4 |
| Unpacked size | 17.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | gucovip |
| Maintainers | happy-share, tz031943210 |

## Links

- npm: https://www.npmjs.com/package/@mytikas/tool-kit
- npm.io page: https://npm.io/package/@mytikas/tool-kit

## Dependencies (4)

- [fs-extra](https://npm.io/package/fs-extra.md) ^11.1.1
- [inquirer](https://npm.io/package/inquirer.md) ^9.2.6
- [inquirer-command-prompt](https://npm.io/package/inquirer-command-prompt.md) ^0.1.0
- [inquirer-autocomplete-prompt](https://npm.io/package/inquirer-autocomplete-prompt.md) ^3.0.0

## Recent versions

- 0.1.6 (latest) — 2025-04-15
- 0.1.5 — 2025-04-09
- 0.1.4 — 2024-03-14
- 0.1.3 — 2024-02-27
- 0.1.1 — 2024-02-23
- 0.1.0 — 2024-02-19
- 0.0.8 — 2024-02-06
- 0.0.7 — 2023-11-10
- 0.0.6 — 2023-08-31

## README

# tool-kit

## description
tool-kit is a collection of tools for nodejs.

## install
```bash
pnpm add @mytikas/tool-kit
```

## usage
```javascript
import { initContext } from '@mytikas/tool-kit'

const ctx = initContext('namespace', options)
```

## FlowCommand
封装了 inquirer 的一些常用方法
```javascript
import { FlowCommand } from '@mytikas/tool-kit'

await FlowCommand.select('请选择一个选项', ['a', 'b', 'c'])
await FlowCommand.password('请输入密码')
await FlowCommand.input('请输入一些内容')
await FlowCommand.confirm('是否继续')
await FlowCommand.autocomplete('请选择一个选项', ['a', 'b', 'c'])
await FlowCommand.checkbox('请选择一些选项', ['a', 'b', 'c'])
await FlowCommand.prompt() // 自定义 inquirer.prompt
```

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