resolvr

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

resolvr

Resolves a path in a object.

node.js

$ npm install resolvr

component

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