vnft-tools
v1.2.2
Published
just a small collection of code snippets that i keep using and dont want to copy and paste every time
Downloads
64
Readme
just a small collection of code snippets that i keep using and dont want to copy and paste every time
sleep
allowes async functions to wait a given time in ms
const { sleep } = require("vnft-tools");
async function main() {
console.log("wait a second..");
await sleep(1000);
console.log("nice");
}
main();
fetchJS
return a list of all .js file-paths within a folder and its subfolders
time
contains various times to ms
const { time, sleep } = require("vnft-tools");
async function main() {
console.log("wait a minute..");
await sleep(time.minute);
console.log("nice");
}
main();