-
Notifications
You must be signed in to change notification settings - Fork 36
Home
Welcome to the AutoMapperTS wiki! AutoMapperTS is a convention-based object-object mapper in JavaScript, based on the syntax of the AutoMapper .NET library.
In line with the original implementation, AutoMapperTS uses a fluent configuration API to define an object-object mapping strategy. The pursuit of this implementation is to reach as comparable as possible usage and functionality to the original AutoMapper implementation. For type safety (both for writing and maintaining the AutoMapper source code), this library port has been implemented in TypeScript. All JavaScript files in the repository therefore are TypeScript generated files, mainly here for our Bower and NPM package's sake (resp. http://bower.io/search/?q=automapper-ts and https://www.npmjs.com/package/automapper-ts).
Feel free to suggest additional features and/or priority for resolving issues. You are more than welcome to file a pull request ;) ...
AutoMapperTS supports the following platforms:
- TypeScript
- JavaScript
Are you new to AutoMapper? Please check out the Getting started page or the rest of this Wiki.
The source code contains nearly 100% unit tests for all of the features listed above. To view the unit tests, browse the source code.
You can also run the configuration samples:
- locally, after cloning this repository;
- directly from GitHub, using the configuration samples page url.
AutoMapperTS is registered as a Bower package, named automapper-ts
. AutoMapperTS is also registered as an NPM package, named automapper-ts
.
Happy coding!
AutoMapperTS is Copyright © 2015 Bert Loedeman and other contributors under the MIT license.
Getting started
Mapping performance
Initialization (initialize)
Mapping configuration (createMap)
- forMember
- forSourceMember
- condition
- forAllMembers
- ignoreAllNonExisting
- convertToType
- convertUsing
- withProfile
Validation (assertConfigurationIsValid)
Mapping (map)
Currying
Custom type converters
Profiles
Chaining
Naming conventions
Asynchronous mapping
Flattening and nesting