objpath

create/access objects with a key-string

npm install objpath
6 downloads in the last week
24 downloads in the last month

objpath

create/access objects with a key-string

var objpath = require('objpath')
objpath(this, 'foo.bar', 'blub')
assert.equal(this.foo.bar,'blub')
assert.equal(objpath(this,'foo.bar'),'blub')
npm loves you