This project provides modular JavaScript utilities for managing timed intervals and global configuration, originally designed for autoupdate features and OpenLayers-based mapping applications. The codebase has been modernized to ES6+ standards and restructured for maintainability.
Clone the repository and install dependencies:
git clone https://github.com/hkevin01/javascript-interval.git
cd javascript-interval
npm installimport { startRefresh, stopRefresh } from './src/interval.js';
const intervalId = startRefresh(() => {
// Your periodic task
}, 1000);
// To stop:
stopRefresh(intervalId);- Fork the repository
- Create a feature branch
- Submit pull requests with clear descriptions
- Follow code style and documentation standards
MIT License
See LICENSE for details.