2.1.0 • Published 3 years ago

auto-reload-page v2.1.0

Weekly downloads
34
License
MIT
Repository
github
Last release
3 years ago

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

npm.io

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

ParamTypeDefaultDescription
urlstringUrl to be opened
intervalnumber60 * 1000Interval between each reload
titlestring"\"Page content auto reloading\""An optional page title for the separate window

License

MIT. See license file.