1.0.15 • Published 5 years ago

automapper-js v1.0.15

Weekly downloads
56
License
ISC
Repository
-
Last release
5 years ago

AUTOMAPPER-JS

AutoMapper-js is released under the MIT license & supports modern environments.

Installation

Using npm:

$ npm i --save automapper-js

In Node.js:

var mapper = require('automapper-js');

Why AutoMapper-js?

AutoMapper makes JavaScript easier by taking the hassle out of working with object mapping manually.

Usage

first define your model. e.g

    class Person{
        constructor(){
            this.FirstName = "",
            this.LastName = "",
            this.Age = "",
            this.Address = ""
        }
    }

    module.exports = Person;
    const mapper = require('automapper-js');
    const PersonModel = require('./Models/Person');
    const axios = require('axios');

    async run()=>{
        let persons = await axios.get("https://some-api/persons");
        let newMappedObject = mapper(PersonModel, persons);
    }

    run();

made with love

1.0.15

5 years ago

1.0.14

5 years ago

1.1.0

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago