* added plugin * updated plugin + added component * dummy data TO BE REMOVED * (wip) workflow generator tool * add workflow generator tooling * updated the generator tool * added code file creation * fix design of diagrams * configured diagram theme * added build script * removed comments + unnecessary files * general fixes * refactored plugin * added README + more output types
13 lines
356 B
TypeScript
13 lines
356 B
TypeScript
export default function (length = 4) {
|
|
let result = ""
|
|
const characters =
|
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
|
|
const charactersLength = characters.length
|
|
let counter = 0
|
|
while (counter < length) {
|
|
result += characters.charAt(Math.floor(Math.random() * charactersLength))
|
|
counter += 1
|
|
}
|
|
return result
|
|
}
|