routie dev init since i didn't adhere to any proper guidance up until now

This commit is contained in:
2026-04-29 22:27:29 -06:00
commit e1dabb71e2
15301 changed files with 3562618 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
'use strict'
/**
* Executes functions sequentially.
*
* @param {function[]} arguments - Functions to execute.
* @returns {void}
*/
function flow () {
if (arguments.length === 0) {
return
}
const head = arguments[0]
const rest = [].slice.call(arguments, 1)
head()
setTimeout(() => {
flow.apply(null, rest)
}, 33)
}
const text = String(process.argv[2])
flow(
() => {
process.stdout.write(text)
},
() => {
process.stdout.write(`${text}\n`)
},
() => {
process.stdout.write(`${text}\n${text}`)
},
() => {
process.stdout.write(`${text}\n${text}\n`)
},
() => {
process.stdout.write(`${text}\n${text}\n${text}\n${text}\n`)
},
() => {
process.stdout.write(`\n${text}\n${text}`)
},
() => {
process.stdout.write(`${text}\n\n\n`)
},
() => {
process.stdout.write(`\n${text}`)
}
)