パッケージの詳細

@eslang/express

nirlstudio7MIT1.1.2

A wrapper of ExpressJS to simplify its usage in Espresso code.

eslang, espresso, espressolang, espresso-lang

readme

Espresso Express

Use it in your Espresso project

The project can be any type of default, app, module or api, which created by es-npm.

add dependency

npm i --save @eslang/express

use it in code

const express (import "express");

# to create a plain ExpressJS app.
var app (express app);

# to create an ExpressJS app which supports Espresso data in request body.
var api (express api);

# to create an ExpressJS app which supports Espresso data in request body and
# allow requests from any origin when called in web browsers.
var service (express service);

Or just check how it's used in Espresso's api project template.

Enjoy the Espresso.