0.11.1 • Published 5 months ago
@bleed-believer/espresso v0.11.1
@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