ap

alias-property

create robust aliases for an object's properties

Showing:

Popularity

Downloads/wk

4

GitHub Stars

2

Maintenance

Last Commit

8yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

alias-property

create robust aliases for an object's properties

Installation

With packin or component

$ packin add jkroso/alias-property

then in your app:

var alias = require('alias-property')

API

alias(obj, to, from)

create an alias from from to to

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

Running the tests

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100