https://github.com/dmnsgn/auto-reload-page
Auto reload a page at a specified interval.
https://github.com/dmnsgn/auto-reload-page
automatic frame frameset page reload reloader
Last synced: 4 months ago
JSON representation
Auto reload a page at a specified interval.
- Host: GitHub
- URL: https://github.com/dmnsgn/auto-reload-page
- Owner: dmnsgn
- License: mit
- Created: 2019-04-24T17:36:33.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T13:21:42.000Z (12 months ago)
- Last Synced: 2025-02-03T20:01:37.122Z (5 months ago)
- Topics: automatic, frame, frameset, page, reload, reloader
- Language: JavaScript
- Size: 45.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# auto-reload-page
[](https://www.npmjs.com/package/auto-reload-page)
[](https://www.npmjs.com/package/auto-reload-page)
[](https://bundlephobia.com/package/auto-reload-page)
[](https://github.com/dmnsgn/auto-reload-page/blob/main/package.json)
[](https://github.com/microsoft/TypeScript)
[](https://conventionalcommits.org)
[](https://github.com/prettier/prettier)
[](https://github.com/eslint/eslint)
[](https://github.com/dmnsgn/auto-reload-page/blob/main/LICENSE.md)Auto reload a page at a specified interval.
[](https://paypal.me/dmnsgn)
[](https://commerce.coinbase.com/checkout/56cbdf28-e323-48d8-9c98-7019e72c97f3)
[](https://twitter.com/dmnsgn)
## Installation
```bash
npm install auto-reload-page
```## Usage
```js
import autoReloadPage from "auto-reload-page";// Open url in a separate window and reload every 10 seconds
autoReloadPage("https://www.ipcc.ch/", 10000);
```## API
## autoReloadPage(url, [interval], [title])
Auto reload a page at a specified interval.
**Kind**: global function
| Param | Type | Default | Description |
| ---------- | ------------------- | ------------------------------------------------------------------ | ---------------------------------------------- |
| url |string
| | Url to be opened |
| [interval] |number
|60 \* 1000
| Interval between each reload |
| [title] |string
|"\"Page content auto reloading\""
| An optional page title for the separate window |## License
MIT. See [license file](https://github.com/dmnsgn/auto-reload-page/blob/main/LICENSE.md).