1.1.3 • Published 3 years ago

heartbeat-sh v1.1.3

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

heartbeat.js

A js client library for heartbeat.sh.

Usage

Install the package with npm i heartbeat-sh

Example Usage:

const heartbeatClient = require('heartbeat-sh')

const secondsPerDay = 86400
const secondsPerHour = 3600

const myClient = new heartbeatClient({subdomain: "example"})

// Send a heartbeat
myClient.SendHeartbeat("example:js", secondsPerDay + 2 * secondsPerHour, secondsPerDay * 2)

// Delete a heartbeat
myClient.DeleteHeartbeat("deleteme")

Links

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.0

4 years ago