Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Piping Server
node v12.22.12
version:
7.0.0
endpoint
share
tweet
const http = require("http"); const piping = require("piping-server@1.1.1"); const log4js = require("log4js@6.1.2"); // Create a logger const logger = log4js.getLogger(); logger.level = "info"; const pipingServer = new piping.Server(logger); const httpPort = 3000; http.createServer(pipingServer.generateHandler(false)) .listen(httpPort, ()=>{ console.log(`Listening HTTP on ${httpPort}...`); }); // (from: https://npm.runkit.com/express) console.log(process.env.RUNKIT_ENDPOINT_URL);
# Endpoints 1.1.1: https://piping-47q675ro2guv.runkit.sh/ 0.8.1: https://piping-92sr2pvuwg14.runkit.sh/
Loading…
no comments
sign in
to comment