0.12.1 • Published 12 months ago

@mean-stream/nestx v0.12.1

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

nestx

NPM version

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

1 year ago

0.12.1

12 months ago

0.11.3

1 year ago

0.11.4

1 year ago

0.11.2

2 years ago

0.11.0

2 years ago

0.11.1

2 years ago

0.10.0

2 years ago

0.10.1

2 years ago

0.9.0

2 years ago

0.8.1

2 years ago

0.7.2

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.9.2

2 years ago

0.7.4

2 years ago

0.9.1

2 years ago

0.7.3

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago