🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

alias-property

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alias-property

create robust aliases for an object's properties

0.1.0
latest
Source
npm
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

alias

FAQs

Package last updated on 19 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts