UNPKG

quickstruc

Version:

quickstruc is a Node.js-powered module designed to streamline project scaffolding.

14 lines (10 loc) 315 B
const spinner = (message) => { const spinnerChars = ["|", "/", "-", "\\"]; let i = 0; const spinnerInterval = setInterval(() => { process.stdout.write(`\r${message} ${spinnerChars[i++]}`); i %= spinnerChars.length; }, 100); return spinnerInterval; }; module.exports = { spinner };