graph-mapper

A two-way mapper for an object graph.

Usage no npm install needed!

<script type="module">
  import graphMapper from 'https://cdn.skypack.dev/graph-mapper';
</script>

README

Graph Mapper

An NPM package for a fast, two-way object graph mapper.

Installation

npm install --save graph-mapper

Why?

There are some other general object mappers out there. But I needed a mapper that was fast, declarative, AND could explain itself to me later. I want to provide one or more target paths, and get an explaination of what sources are needed to generate them.

Docs?

You can find the full documentation by reading through the spec: lib/graph-mapper.spec.js

ISC License (ISC)

Copyright 2019 Shane Kuester

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.