heroku-awake
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

Heroku Awake

Keep your herokuapp always awakes.

NPM Version ts Package License

Support Javascript and Typescript

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

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i heroku-awake

Weekly Downloads

28

Version

1.0.10

License

MIT

Unpacked Size

5.2 kB

Total Files

5

Last publish

Collaborators

  • misa198