UNPKG

graph-resolver

Version:

Graph Resolver resolves a value or a list of values of a model to another, provided their intermediaries have defined relationships.

30 lines (19 loc) 1.16 kB
# graph-resolver [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage](https://coveralls.io/repos/siddharthkchatterjee/graph-resolver/badge.svg?branch=master&service=github)](https://coveralls.io/github/siddharthkchatterjee/graph-resolver?branch=master) > Graph Resolver resolves a value or a list of values of a model to another, provided their intermediaries have defined relationships. ## Install ```sh $ npm install --save graph-resolver ``` ## Usage ```js var graphResolver = require('graph-resolver'); graphResolver('Rainbow'); ``` ## License MIT © [Sidhartha Chatterjee]() [npm-image]: https://badge.fury.io/js/graph-resolver.svg [npm-url]: https://npmjs.org/package/graph-resolver [travis-image]: https://travis-ci.org/siddharthkchatterjee/graph-resolver.svg?branch=master [travis-url]: https://travis-ci.org/siddharthkchatterjee/graph-resolver [daviddm-image]: https://david-dm.org/siddharthkchatterjee/graph-resolver.svg?theme=shields.io?branch=master [daviddm-url]: https://david-dm.org/siddharthkchatterjee/graph-resolver?branch=master