1.5.3 • Published 2 years ago

@night-sky/listener-express v1.5.3

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

listener-express

NightSky Listeners are lightweight additions to your server-side applications that collect request and response data, forwarding it on to NightSky Satellites.

This Listener implementation is an Express middleware.

It is suitable for quick-start and, if necessary, production usage. However, we recommend using the NightSky Sidecar Proxy Listener where possible for enhanced performance and separation of concerns.

Installation

npm install --save @night-sky/listener-express

Usage

import express from "express";
import nightskyListener from "@night-sky/listener-express";

const app = express();

app.use(
  nightskyListener({ satelliteHost: "example-satellite.svc.cluster.local" })
);

app.get("/", (req, res) => {
  res.send({ success: true });
});

app.listen(3000);
1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago