alias-property

create robust aliases for an object's properties

alias-property

create robust aliases for an object's properties

With packin or component

$ packin add jkroso/alias-property

then in your app:

var alias = require('alias-property')

create an alias from from to to

var obj = {a:1}
alias(obj, 'a', 'b')
obj.// => 1 
obj.// => 1 
obj.= 2
obj.// => 2 
obj.// => 2 
obj.= 3
obj.// => 3 
obj.// => 3 

Just run make and navigate your browser to the test directory.