@httpi/adapter-hyperexpress
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

@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);

Readme

Keywords

none

Package Sidebar

Install

npm i @httpi/adapter-hyperexpress

Weekly Downloads

1

Version

1.0.7

License

CC0-1.0

Unpacked Size

25.4 kB

Total Files

8

Last publish

Collaborators

  • desplol
  • real2two