UNPKG

create-quickstart-app

Version:

CLI tool to generate Next.js projects with various configurations

22 lines (21 loc) 472 B
import ora from "ora"; // Create a singleton spinner instance const spinner = ora(); export const createSpinner = (text) => { spinner.text = text; spinner.start(); return { succeed: (text) => { spinner.succeed(text); }, fail: (text) => { spinner.fail(text); }, update: (text) => { spinner.text = text; }, stop: () => { spinner.stop(); }, }; };