updated-auto-refresh
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Refresh the page when the page is updated

Usage

import Updator/{ proxyUpdater }  from './lib/bundle.js'
const instance = new Updator({ time: 5000, url: '/',cb:()=>{} })

time:Specify how often to check the file

url:Specify where to check the file cb: Callback function when the file is changed. When the file is changed will refresh the page Suggest to set a cb ,eg open a Confirm box when you set instance.stop = true , will stop the work untile instance.stop = false

Readme

Keywords

Package Sidebar

Install

npm i updated-auto-refresh

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

4.74 kB

Total Files

6

Last publish

Collaborators

  • fancy_fish