@luzhongk/node-feedback

1.1.2 • Public • Published

@luzhongk/node-feedback

Usage

const { confirm, select, input } = require("@luzhongk/node-feedback");

async function test() {
  await confirm("请确定开始?");
  const a = await select({
    name: "name",
    message: "确定信息",
    choices: ["选项1", "选项2", "选项3"]
  });
  console.log(a);
  const b = await input("输入内容");
  console.log(b);
}

test();

/@luzhongk/node-feedback/

    Package Sidebar

    Install

    npm i @luzhongk/node-feedback

    Weekly Downloads

    1

    Version

    1.1.2

    License

    ISC

    Unpacked Size

    2.77 kB

    Total Files

    4

    Last publish

    Collaborators

    • luzhongk