1.0.0-alpha.12 • Published 3 years ago

@watchcathq/express v1.0.0-alpha.12

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

npm.io @watchcathq/express

Express.js plugin for watchcat.io.

Installation and Usage

To install the package, use your preferred package manager:

npm install @watchcathq/express
yarn add @watchcathq/express

Once you have installed the package, you need to set it up by importing the package and initializing it with your application token:

// ESM
import WatchCat from "@watchcathq/express";

// CommonJS
const WatchCat = require("@watchcathq/express").default;

WatchCat.init({
    token: "APP_TOKEN"
})

Next, you need to set up the error handler. Apply it after all routers as the last middleware:

// Your routes are here

app.use(WatchCat.errorHandler)

// Start server via app.listen

Documentation

See https://watchcat.io/docs

1.0.0-alpha.6

3 years ago

1.0.0-alpha.10

3 years ago

1.0.0-alpha.12

3 years ago

0.2.3

3 years ago

1.0.0-alpha.11

3 years ago

1.0.0-alpha.9

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago