@envoy-js/express
TypeScript icon, indicating that this package has built-in type declarations

1.0.19 • Public • Published

envoy-js/express

Installation

envoy-js/express is available on npm

Using npm

npm i @envoy-js/express

or yarn

yarn add @envoy-js/express

Examples

Typescript Quickstart

import Envoy from "@envoy/express"
import express from "express";
import {createServer} from "http";

const app = express();
const httpServer = createServer(app);
const port = 3000

interface User {
    username: string
    id: string,
    avatar: string
}

interface Message {
    id: string
    value: string
    roomid: string
}

interface Room {
    id: string
    users: User[],
}

const envoy = new Envoy<User, Room, Message>({userKey: "id" as const}, httpServer)

httpServer.listen(port, () => {
    console.log(`Envoy app listening on port ${port}`)
})

Here is a sample React app

React

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.193latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.193
1.0.1817
1.0.172
1.0.162
1.0.153
1.0.140
1.0.132
1.0.122
1.0.110
1.0.102
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @envoy-js/express

Weekly Downloads

33

Version

1.0.19

License

MIT

Unpacked Size

22.8 kB

Total Files

11

Last publish

Collaborators

  • pumpkintitan
  • henry232323