1.2.2 • Published 6 years ago
vnft-tools v1.2.2
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();
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.9-b
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago