Automatically checks for updates to your site and notifies you
npm i @jianxing/auto-check-update
import { start } from '@jianxing/auto-check-update'
// main.js
start({
onNotify() {
// exec your code
return true // Return true to stop checking.
},
time: 2000 // interval
})
MIT License © 2024-PRESENT Jianxing Xu