@bleed-believer/espresso
TypeScript icon, indicating that this package has built-in type declarations

0.11.1 • Public • Published

@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.

Package Sidebar

Install

npm i @bleed-believer/espresso

Weekly Downloads

30

Version

0.11.1

License

MIT

Unpacked Size

35.2 kB

Total Files

71

Last publish

Collaborators

  • sleep-written