1.0.3 • Published 5 years ago

potatime v1.0.3

Weekly downloads
4
License
ISC
Repository
-
Last release
5 years ago

Potatime

Potatime is easy to use javascript timer.

Installation

npm i potatime

Example Usage

const { Potato } = require('potatime');

const pota = new Potato('pota');
const opt = {
	duration: 10,
	callback : (remaining) => {
		if(remaining === 5){
			pota.clear();
			return;
		}
		console.log(remaining);
	}
}

pota.start(opt);
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago