An scalable endpoint router for express.js applications, using classes as Controller and decorators.
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.
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,
/** ... **/
}
}
After install the required dependencies, you can install this package:
npm i --save @bleed-believer/espresso