1.0.10 • Published 3 years ago

heroku-awake v1.0.10

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

Heroku Awake

Requirement

  • Node
  • Yarn or NPM

Installation

$ npm i heroku-awake --save
# OR
$ yarn add heroku-awake

Usage

Javascript

const express = require("express");
const herokuAwake = require("heroku-awake");

const PORT = 3000;
const url = "https://your-app.herokuapp.com";

const app = express();

app.listen(PORT, () => {
  // Default application refresh time is 25 mins
  herokuAwake(url);

  // If you want to change application refresh time
  const time = 10;
  herokuAwake(url, time);
});

Typescript

import * as express from "express";
import * as herokuAwake from "heroku-awake";

const PORT = 3000;
const url = "https://your-app.herokuapp.com";

const app = express();

app.listen(PORT, () => {
  // Default application refresh time is 25 mins
  herokuAwake(url);

  // If you want to change application refresh time
  const time = 10;
  herokuAwake(url, time);
});

License

MIT

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.2

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago