Skip to content

kokororin/suimin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

suimin

npm version

sleep function for javascript

Installation

npm install suimin --save

Usage

const suimin = require('suimin');

async function test() {
  console.log('Taking a break...');
  await suimin(2000);
  console.log('Two second later');
}

test();

Test

npm install
npm test

License

MIT license