New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-glitch-keepalive

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-glitch-keepalive

An Express middleware that keeps your Glitch project alive

0.2.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

express-glitch-keepalive

An Express middleware that keeps your Glitch project alive.

Inspired by koa-glitch-keepalive.

Installation

npm i --save express express-glitch-keepalive

Usage

const express = require('express');
const keepalive = require('express-glitch-keepalive');

const app = express();

app.use(keepalive);

app.get('/', (req, res) => {
  res.json('Ok');
});

Configuration

Keepalive can be configured in a number of ways:

  • The request path to use defaults to /_keepalive but can be changed with the environment variable KEEPALIVE_PATH.
  • The delay between keepalive requests defaults to 3 minutes but can be changed with the environment variable KEEPALIVE_MINUTES.

Keywords

glitch

FAQs

Package last updated on 25 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts