Skip to content

osofem/snoozely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snoozely

A sleep function for nodejs!

Usage

For asynchronous function

console.log("Dozing off, Zzzzz");
await require("snoozely").snoozely(10000); //sleep for 10sec
console.log("Awake now!");

For synchronous function

console.log("Dozing off, Zzzzz");
//sleep for 10sec
require("snoozely").snoozelySync(10000, ()=>{
    console.log("Awake now!");
});

About

Sleep module for nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published