1.0.9 • Published 7 months ago

@httpi/adapter-hyperexpress v1.0.9

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
7 months ago

@httpi/adapter-hyperexpress

This is a HyperExpress adapter for @httpi/client.

Install the adapter using one of these:

npm i @httpi/adapter-hyperexpress
yarn add @httpi/adapter-hyperexpress
pnpm i @httpi/adapter-hyperexpress

Example usage

import HyperExpress from 'hyper-express';
import { createEvents } from '@httpi/client';
import { createHyperExpressAdapter } from '@httpi/adapter-hyperexpress';

const app = new HyperExpress.Server();

app.post(
  '/interactions',
  createHyperExpressAdapter({
    publicKey,
    events: createEvents({
      commands,
      components,
    }),
  }),
);

app.listen(3000);
1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago