UNPKG

project_keertika

Version:

46 lines (33 loc) 1.92 kB
function i_love_you_keertika() { const frames = [ ` ▗▄▄▄▖ █ █ ▗▄█▄▖ `,` ▗▖ ▗▄▖ ▗▖ ▗▖ ▗▄▄▄▖ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▛▀▀▘ ▐▙▄▄▖ ▝▚▄▞▘ ▝▚▞▘ ▐▙▄▄▖ ⠀⠀⠀⠀`, `▗▖ ▗▖ ▗▄▖ ▗▖ ▗▖ ▝▚▞▘ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▐▌ ▝▚▄▞▘ ▝▚▄▞▘ `, `▗▖ ▗▖ ▗▄▄▄▖ ▗▄▄▄▖ ▗▄▄▖ ▗▄▄▄▖ ▗▄▄▄▖ ▗▖ ▗▖ ▗▄▖ ▐▌▗▞▘ ▐▌ ▐▌ ▐▌ ▐▌ █ █ ▐▌▗▞▘ ▐▌ ▐▌ ▐▛▚▖ ▐▛▀▀▘ ▐▛▀▀▘ ▐▛▀▚▖ █ █ ▐▛▚▖ ▐▛▀▜▌ ▐▌ ▐▌ ▐▙▄▄▖ ▐▙▄▄▖ ▐▌ ▐▌ █ ▗▄█▄▖ ▐▌ ▐▌ ▐▌ ▐▌ ` ]; let i = 0; const interval = setInterval(() => { process.stdout.write('\x1b[2J\x1b[0f' + frames[i++ % frames.length]); }, 500); setTimeout(() => { clearInterval(interval); process.stdout.write('\nAnimation complete!\n'); }, 10000); } module.exports = i_love_you_keertika;