Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T13:21:42.000Z (6 months ago)
- Last Synced: 2024-11-29T19:25:13.429Z (about 1 month 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
[![npm version](https://img.shields.io/npm/v/auto-reload-page)](https://www.npmjs.com/package/auto-reload-page)
[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)](https://www.npmjs.com/package/auto-reload-page)
[![npm minzipped size](https://img.shields.io/bundlephobia/minzip/auto-reload-page)](https://bundlephobia.com/package/auto-reload-page)
[![dependencies](https://img.shields.io/librariesio/release/npm/auto-reload-page)](https://github.com/dmnsgn/auto-reload-page/blob/main/package.json)
[![types](https://img.shields.io/npm/types/auto-reload-page)](https://github.com/microsoft/TypeScript)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-fa6673.svg)](https://conventionalcommits.org)
[![styled with prettier](https://img.shields.io/badge/styled_with-Prettier-f8bc45.svg?logo=prettier)](https://github.com/prettier/prettier)
[![linted with eslint](https://img.shields.io/badge/linted_with-ES_Lint-4B32C3.svg?logo=eslint)](https://github.com/eslint/eslint)
[![license](https://img.shields.io/github/license/dmnsgn/auto-reload-page)](https://github.com/dmnsgn/auto-reload-page/blob/main/LICENSE.md)Auto reload a page at a specified interval.
[![paypal](https://img.shields.io/badge/donate-paypal-informational?logo=paypal)](https://paypal.me/dmnsgn)
[![coinbase](https://img.shields.io/badge/donate-coinbase-informational?logo=coinbase)](https://commerce.coinbase.com/checkout/56cbdf28-e323-48d8-9c98-7019e72c97f3)
[![twitter](https://img.shields.io/twitter/follow/dmnsgn?style=social)](https://twitter.com/dmnsgn)![](https://raw.githubusercontent.com/dmnsgn/auto-reload-page/main/screenshot.gif)
## 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).