0.11.4 • Published 3 months ago
@mean-stream/nestx v0.11.4
nestx
nestx is an extension package for NestJS apps.
Installation
$ npm install @mean-stream/nestx
Usage
Nestx provides many standalone modules that can be combined at will.
- Events -
@mean-stream/nestx/event
- Simple event gateway and emitter based on NATS. - Errors -
@mean-stream/nestx/error
(formerly@mean-stream/nestx/not-found
) - Simplified error handling and documentation with Swagger. - Ref -
@mean-stream/nestx/ref
- Declare model properties as ObjectIds with support for Swagger, validation and populate. - Resource -
@mean-stream/nestx/resource
- Helpers for CRUD services and controllers.
Submodules can be imported individually or all at once:
import {EventModule, NotFound, Ref} from '@mean-stream/nestx';
// or
import {EventModule} from '@mean-stream/nestx/event';
import {NotFound} from '@mean-stream/nestx/not-found';
import {Ref} from '@mean-stream/nestx/ref';
The second form is preferred if you want to avoid some optional dependencies.
Keep in mind that it requires "moduleResolution": "NodeNext"
in your tsconfig.json
.
Development
Building
Run nx build nestx
to build the library.
Running unit tests
Run nx test nestx
to execute the unit tests via Jest.
0.11.3
3 months ago
0.11.4
3 months ago
0.11.2
4 months ago
0.11.0
5 months ago
0.11.1
5 months ago
0.10.0
11 months ago
0.10.1
11 months ago
0.9.0
11 months ago
0.8.1
11 months ago
0.7.2
12 months ago
0.8.0
11 months ago
0.7.1
12 months ago
0.9.2
11 months ago
0.7.4
11 months ago
0.9.1
11 months ago
0.7.3
11 months ago
0.7.0
12 months ago
0.6.1
1 year ago
0.6.0
1 year ago
0.5.0
1 year ago
0.4.0
1 year ago