An NPM module to easily delay your code.
# Using NPM
npm install async-wait.js
# Using Yarn
yarn add async-wait.js
// Using Node.js
const { config, wait } = require("async-wait.js");
// Using React.js
import { config, wait } from "async-wait.js";
const { config, wait } = require("async-wait.js"); // Import the module
(async() => {
config(); // Configure the module
console.log("Hello"); // Print "Hello" to the console
wait(1000); // Wait 1000ms (1s)
console.log("world"); // Print "world" to the console
})();
Contact LilJuiceBox491 on Discord at LilJuiceBox491#3256