Don't let your replit go offline, Create a http server with just one line of code and keep pinging to keep your project online!
npm install node-replit-uptimer
npm i node-replit-uptimer
npm i k4itrun/node-replit-uptimer
yarn add node-replit-uptimer
pnpm add node-replit-uptimer
javascript
new (require("node-replit-uptimer"))();
`
with configuration
`javascript
new (require("node-replit-uptimer"))({
port: 3000, // Port on which the server will run
path: "/your-path", // Path to which the server will respond
message: "Hello, World!", // Custom reply message
debug: true // Enable debug mode (optional)
});
`
- or
`javascript
const Uptimer = require("node-replit-uptimer");
const server = new Uptimer({
port: 3000, // Port on which the server will run
path: "/your-path", // Path to which the server will respond
message: "Hello, World!", // Custom reply message
debug: true // Enable debug mode (optional)
});
``