0.11.1 • Published 5 months ago

@bleed-believer/espresso v0.11.1

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

@bleed-believer/espresso

An scalable endpoint router for express.js applications, using classes as Controller and decorators.

Disclaimer

Since ESM hs been heavely adopted by the whole node.js community (including transpilers, unit testing, and many other libraries), the CJS support has been removed. If you still needs the CJS compatibility, please use this version or earlier.

Prerequisites

In your project you must have installed locally express.js framework with its type definitions:

# Install typescript
npm i --save-dev typescript

# Install the types for development
npm i --save-dev @types/node
npm i --save-dev @types/express

# Install express.js
npm i --save express

In your tsconfig.json, remember to enables these options:

{
    "compilerOptions": {
        /** ... **/
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        "allowSyntheticDefaultImports": true,
        /** ... **/
    }
}

Installation

After install the required dependencies, you can install this package:

npm i --save @bleed-believer/espresso

Documentation

  1. Getting started.
  2. Creating a controller.
  3. Creating routes.
  4. Routing injection.
0.11.1

5 months ago

0.11.0

1 year ago

0.10.2

1 year ago

0.10.3

1 year ago

0.10.1

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago

0.5.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.4.0

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago