Socket
Socket
Sign inDemoInstall

nodeproxy

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nodeproxy

A port of the jQuery proxy function to nodeJs


Version published
Weekly downloads
202
increased by83.64%
Maintainers
1
Install size
3.31 kB
Created
Weekly downloads
 

Readme

Source

nodeproxy

A port of the jQuery proxy functionality to NodeJS.

Installation

The easiest way to install is through the Node Package Manager (NPM):

npm install nodeproxy

Usage

var nodeproxy = require('nodeproxy');

function ObjectOne(){
	function helloWorld(){
		console.log("Hello " + this.name);
	}
	return {
		helloWorld: helloWorld
	}
}

function ObjectTwo(){
	function init(){
		var contextObject = { name: 'iain' };
		var objectOne = new ObjectOne();
		nodeproxy(objectOne.helloWorld, contextObject)();
	}
	return {
		init: init
	}
}

var objectTwo = new ObjectTwo();
objectTwo.init();
//Console will display..
//Hello iain

Keywords

FAQs

Last updated on 18 Jul 2012

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc