Automapper

screenshot of Automapper
nestjs

An Object-Object AutoMapper module for NestJS.

Overview

The nestjsx-automapper is a wrapper for @nartc/automapper, which has been broken up into a monorepo and released under the scope @automapper/*. This wrapper simplifies the process of mapping between classes and handling complex mapping scenarios. It provides various features and functionalities for efficient data mapping within a NestJS application.

Features

  • Mapping between two classes
  • Mapping for nested classes
  • Array/List mapping
  • Flattening
  • Basic ReverseMap
  • Value Converters
  • Value Resolvers
  • Async mapping
  • Before/After Callback handling
  • Naming Conventions support (PascalCase and camelCase)

Summary

The nestjsx-automapper simplifies the mapping process within a NestJS application by providing a convenient wrapper around @nartc/automapper. It offers a wide range of features for data mapping including support for nested classes, array/list mapping, value converters, and more. By following the installation guide and utilizing the provided decorators, developers can efficiently map data between classes and optimize their NestJS applications.

nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.