0.0.19 • Published 9 months ago

@xpresser/express-module v0.0.19

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

XpresserJs Express Server Module provider

This module provides an express server for XpresserJs.

If you are conversant with the common js version of XpresserJs, this module is the equivalent of that with a few yet to arrive features.

import { init, __dirname } from "@xpresser/framework";
import ExpressProvider from "@xpresser/express-module";

// Get Base Folder Path
const base = __dirname(import.meta.url);

// Init Xpresser
const $ = await init({
  env: "development",
  name: "Express Provider",
  paths: { base }
});

// Register Server Module with Express Provider
const { router } = await ExpressProvider.use($);

router.get("/", (http) => {
  return http.send("Hello World!");
});

// Start Xpresser
$.start().catch($.console.logErrorAndExit);
0.0.17

9 months ago

0.0.18

9 months ago

0.0.19

9 months ago

0.0.16

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago