1.5.1 • Published 1 year ago

@ableron/express v1.5.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@ableron/express

Build Status npm version Node.js Version

Express Middleware for Ableron Server Side UI Composition

Installation

npm i @ableron/express

Usage

Full example using ES Modules

import express from 'express';
import ableron from '@ableron/express';

const app = express();

app.use(
  ableron(
    // custom settings (optional)
    {
      fragmentRequestTimeoutMillis: 5000,
      fragmentAdditionalRequestHeadersToPass: ['X-Test-Groups'],
      cacheVaryByRequestHeaders: ['X-Test-Groups'],
      statsAppendToContent: true
      // ...
    },
    // custom logger (optional). If no logger is provided, no logging happens at all
    yourLogger() || console
  )
);

Minimal example using CommonJS

const express = require('express');
const ableron = require('@ableron/express').default;

const app = express();

app.use(ableron());

Configuration

Configuration options see @ableron/ableron

1.5.1

1 year ago

1.5.0

2 years ago

1.4.0

2 years ago

1.4.0-alpha.1

2 years ago

1.4.0-alpha.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago