main = async function() {
    const numPasswords = 1000000; // At this moment it generates a million data, but you can modify it to your liking.
    const passwords = Array.from({ length: numPasswords }, passwordGenerator);

    try {
        const results = await turbit.run(checkStrength, {
            type: "extended",
            data: passwords,
            power: 100 // Uses 100% of available cores
        });

        turbit.kill();

        saveDataPasswords(results.data, path.join(__dirname, "passwords.csv"));

        console.log("")
        console.log("")
        console.log("Generated passwords:", numPasswords)
        console.log("-")
        console.log('Results saved in passwords.csv');
        console.log("-")
        console.log("Stats:", results.stats)
        console.log("")
        console.log("")
    } catch (error) {
        console.error(`Error: ${error.message}`);
    } finally {
        turbit.kill();
    }
}
main: Generate passwords, check their strength, and save the results.