0.0.6 • Published 4 years ago
chronium v0.0.6
Chronium
Chronium is a Javascript library for countdown mechanisms
Installation
Use the node package manager npm to install Chronium
npm install chronium
Usage
import Timer from 'chronium';
const countDown = Timer.ConvertToSeconds({
hours: 2,
minutes: 52,
seconds: 10,
});
const t = new Timer(countDown);
t.DisplayFullTime('myHTMLTextElement', 'myCountDownEvent');
window.addEventListener('myCountDownEvent', () => {
console.log('finished');
});
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.