nebenan-heartbeat
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

nebenan-heartbeat

Global helper to run functions at roughly defined intervals if the current tab is active. Save to call in server environments.

Heartbeat listeners get executed in the order they were added.

Best to only have one instance of nebenan-heartbeat in your bundle. List it as peer dependency in non-app packages.

npm install --save nebenan-heartbeat

Readme

Keywords

none

Package Sidebar

Install

npm i nebenan-heartbeat

Weekly Downloads

171

Version

1.1.2

License

MIT

Unpacked Size

13.2 kB

Total Files

9

Last publish

Collaborators

  • jobemichael
  • hahiii
  • fweinrich
  • spossner
  • rejas
  • peterhassler