Neophobe Plebeian Mumpsimus

    @automapper/nestjs
    TypeScript icon, indicating that this package has built-in type declarations

    7.0.2 • Public • Published

    @automapper/nestjs

    This is a NestJS module to integrate @automapper with NestJS.

    Installation

    npm i @automapper/nestjs

    or with yarn:

    yarn add @automapper/nestjs

    peerDependencies

    @automapper/nestjs depends on @automapper/core and @automapper/types (and some other @nestjs/* libraries but you should already have these installed in a NestJS application)

    npm i @automapper/core
    npm i --save-dev @automapper/types

    or with yarn:

    yarn add @automapper/core
    yarn add --dev @automapper/types

    Usage

    Call AutomapperModule.forRoot() and provide some options to initialize the Mapper object(s).

    @Module({
      imports: [
        AutomapperModule.forRoot({
          options: [{ name: '', pluginInitializer: classes }],
          singular: true,
        }),
      ],
    })
    export class AppModule {}

    AutomapperModule is a Global module so when Mapper object(s) are initialized, they're available across the application.

    Read more about this on the documentation site

    Install

    npm i @automapper/nestjs

    DownloadsWeekly Downloads

    2,240

    Version

    7.0.2

    License

    MIT

    Unpacked Size

    25.3 kB

    Total Files

    53

    Last publish

    Collaborators

    • nartc