node package manager

resolvr

resolves a path in an object e.g. 'module.name' in {module: {name: 'resolver'}}

resolvr

Build status

Resolves a path in a object.

Installation

node.js

$ npm install resolvr

component

$ component install manuelstofer/resolvr

Usage

var resolve = require('resolvr').resolve,
    data = {
        modules: [
            {name: 'resolvr'}
        ]
    };
 
    resolve(data, 'modules.0.name');  // -> resolvr