0.1.4 • Published 1 year ago

@mytikas/tool-kit v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

tool-kit

description

tool-kit is a collection of tools for nodejs.

install

pnpm add @mytikas/tool-kit

usage

import { initContext } from '@mytikas/tool-kit'

const ctx = initContext('namespace', options)

FlowCommand

封装了 inquirer 的一些常用方法

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.prompt() // 自定义 inquirer.prompt
0.1.4

1 year ago

0.1.3

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.8

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago