Easy Timer/Countdown/Chronometer Library – easytimer.js

Category: Date & Time , Javascript | January 13, 2019
Author: albert-gonzalez
Views Total: 3,067
Official Page: Go to website
Last Update: January 13, 2019
License: MIT

Preview:

Easy Timer/Countdown/Chronometer Library – easytimer.js

Description:

easytimer.js is an easy-to-use Timer/Countdown/Chronometer library built in pure JavaScript that allows to count up to or countdown from a given value with callback support.

Installation:

# NPM
$ npm install easytimer.js

# Bower
$ bower install easytimer.js

How to use it:

Insert the minified version of the easytimer.js script into the document.

<script src="dist/easytimer.min.js"></script>

Create a new easyTimer.

var myTimer = new Timer();

Start the timer and done.

myTimer.start();

Stop/pause the timer.

myTimer.stop();
myTimer.pause();

Configuration options:

myTimer.start({
  precision: SECONDS,
  callback: customCallback,
  countdown: false,
  target: target,
  startValues: 0
});

Changelog:

01/13/2019

  • v3.0.1

You Might Be Interested In:


One thought on “Easy Timer/Countdown/Chronometer Library – easytimer.js

  1. travis

    Seems as if the reset() does not exist on the npm package like the original EasyTimer.js has.
    Is there a reason the reset function was removed?

    Reply

Leave a Reply