⚡️ Ray 3.0 launch sale! Discounts and lifetime licenses available for d h m s

Using Ray with Express.js

Express.js is a fast, unopinionated, minimalist web framework for Node.js. Use Ray to help you debug when developing Express.js applications and middleware.

permafrost-dev/express-ray

#Installing the package

npm install express-ray
yarn add express-ray

#Installing the plugin

To install the express-ray plugin into your Express.js application, call the install method provided by the plugin import:

import express from 'express';
import { plugin as expressRayPlugin } from 'express-ray';

const app = express();

expressRayPlugin.install(app);

Once installed, you can use ray() from anywhere in your Express.js application:

app.get('/', (req, res) => {
    ray('Request received!');
    ray(req.query);

    res.send('Hello World!');
});

#Usage

All JavaScript methods are available when using Express.js.

#What's next?

Now that Ray is installed in your Express.js project, see what you can use it for.

Help us improve this page

Debug without breaking your flow

Ray keeps all your debug output neatly organized in a dedicated desktop app.

Launch sale! Lifetime licenses also available

Licenses are valid for 1 year and managed through Spatie. Licenses purchased before Ray 3 remain valid. VAT is calculated at checkout.