Skip to content

dmnsgn/auto-reload-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9e5c836 · Jul 6, 2024

History

10 Commits
Apr 1, 2021
Jul 6, 2024
Jul 6, 2024
Jul 6, 2024
Apr 1, 2021
Nov 12, 2021
Apr 1, 2021
Jul 6, 2024
Jul 6, 2024
Jul 6, 2024

Repository files navigation

auto-reload-page

npm version stability-stable npm minzipped size dependencies types Conventional Commits styled with prettier linted with eslint license

Auto reload a page at a specified interval.

paypal coinbase twitter

Installation

npm install auto-reload-page

Usage

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.