postpone-timer

1.0.0 • Public • Published

timer.js

The timer.js is a good way to postpone some codes for some times.

Getting Started

Add the timer.js or the timer.min.js file in your HTML.

<script src="dist/timer.min.js"></script>
<!--or-->
<script src="src/timer.js"></script>

How to use

let timer = new Timer();

timer.delay(function() {
  alert('Timer ended'); // The things to do after ending the time
}, 15); // 15 seconds 

Author

License

This project is licensed under the MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i postpone-timer

Weekly Downloads

5

Version

1.0.0

License

ISC

Unpacked Size

18.7 kB

Total Files

12

Last publish

Collaborators

  • emitis89