Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@automapper/classes

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automapper/classes

AutoMapper TypeScript Classes plugin

  • 7.3.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44K
decreased by-15.86%
Maintainers
1
Weekly downloads
 
Created
Source

@automapper/classes

This is the official plugin from @automapper to work with TS/ES6 Class

Installation

npm i @automapper/classes

or with yarn:

yarn add @automapper/classes
peerDependencies

@automapper/classes depends on @automapper/core, @automapper/types, and reflect-metadata.

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

or with yarn:

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

Usage

@automapper/classes provides classes as a MapPluginInitializer. Pass classes to createMapper to create a Mapper that uses classes plugin.

import { classes } from '@automapper/classes';

const mapper = createMapper({
  ...,
  pluginInitializer: classes
})

mapper.createMap(User, UserVm);
mapper.map(user, UserVm, User);

Read more about this plugin on classes documentation

Keywords

FAQs

Package last updated on 25 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc