Early Development Notice: Promptrix is currently in active development.
- TypeSafe: Full TypeScript support.
- Modular: Use only what you need.
- Cross-Platform: Works on Windows, macOS, and Linux.
npm install @promptrix/core
# or
pnpm add @promptrix/core
# or
yarn add @promptrix/core
import { textPrompt } from '@promptrix/core'
(async () => {
const name: string = await textPrompt({
message: "Enter your name:",
validate: (input: string) => input.length > 2 || "Minimum 3 characters"
})
console.log(`Hello, ${name}!`)
})()
Package | Description |
---|---|
@promptrix/core |
Base prompt engine. |
This project is licensed under the MIT License. See the LICENSE file for more details.