UNPKG

node-ff

Version:
15 lines (10 loc) 320 B
import { prompt } from 'prompts'; import { IPrompts, IPromptDTO } from './interface'; import { questions } from './questions'; class Prompts implements IPrompts { async start(): Promise<IPromptDTO | void> { const response = await prompt(questions); return response; } } export { Prompts };