@vybesec/deno
v0.1.11
Published
VybeSec Deno/Edge Functions SDK for server-side error monitoring.
Maintainers
Readme
@vybesec/deno
Server-side error monitoring for Deno-based Edge Functions.
Install
npm install @vybesec/denoInit
import { init, withVybesec } from "@vybesec/deno";
init({
key: "pk_live_YOUR_KEY",
platform: "other",
environment: "production",
});
export default withVybesec(async (req: Request) => {
// ...
return new Response("ok");
});Manual capture
import { captureError } from "@vybesec/deno";
try {
// ...
} catch (err) {
captureError(err, { route: "/webhook", method: "POST", statusCode: 500 });
}