0.1.84 • Published 4 years ago
@cloud-technology/cli-prompt v0.1.84
@cloud-technology/cli-prompt
Overview
cli-prompt is a zero dependency, node.js ESM-compliant commandline prompt.
As an ESM module, when running via a compatible (16+) node.js runtime, package(s)
benefit from running await via the global namespace for blocking cli-prompt
callables.
Setup
npm install --save @cloud-technology/cli-promptDevelopment
If installing only for development or POC-related purposes
npm install --save-dev @cloud-technology/cli-promptUsage
Note - Ensure to have "type": "module" configured in package.json.
- Please see the
standaloneexample for more details on usage.
index.js
import Prompt from "@cloud-technology/cli-prompt";
const Query = await Prompt("First Name");
console.debug(Query);
process.exit(0);