
Research
/Security News
Malicious Chrome Extension Performs Hidden Affiliate Hijacking
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.
forward-object
Advanced tools
Copy properties from an object to another object, where properties with function values will be invoked in the context of the provider, and properties with non-function values are just copied.
Copy properties from an object to another object, where properties with function values will be invoked in the context of the provider, and properties with non-function values are just copied.
Install with npm
$ npm i forward-object --save
var forwardObject = require('forward-object');
Copy properties from an object to another object, where properties with function values will be invoked in the context of the provider, and properties with non-function values are just copied.
Params
receiver {Object}: Object to receive properties.provider {Object}: Object providing properties.keys {Array}: Optional array of keys to foward.returns {Object}: Modified receiver object with properties from providerExample
var receiver = {};
var provider = {
name: 'provider',
upper: function (str) {
return '[' + this.name + '] ' + str.toUpperCase();
}
};
var receiver = forward(receiver, provider);
receiver.name = 'receiver';
console.log(receiver.upper('foo'));
//=> [provider] FOO
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Brian Woodward
Copyright © 2015 Brian Woodward Released under the MIT license.
This file was generated by verb-cli on August 06, 2015.
FAQs
Copy properties from an object to another object, where properties with function values will be invoked in the context of the provider, and properties with non-function values are just copied.
The npm package forward-object receives a total of 2 weekly downloads. As such, forward-object popularity was classified as not popular.
We found that forward-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.