Socket
Socket
Sign inDemoInstall

overrider

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

overrider

JavasScript shallow object copier that supports getters/setters


Version published
Weekly downloads
160
increased by153.97%
Maintainers
1
Weekly downloads
 
Created
Source

overrider

JavasScript shallow object copier that supports getters/setters

Require/include

Node.js / Browserify:

var overrider = require('overrider').Base;

Browsers:

<script src="http://joneit.github.io/overrider/overrider.js"></script>

or:

<script src="http://joneit.github.io/overrider/overrider.min.js"></script>

Usage

var a = { a: 3 };
var b = { b: 5 };
var c = { get abc() { return this.c }, set abc(x) { this.c = x } };
var object = overrider(a, b, c); // result is `a` which now has an `a.b` and the `a.abc` getter and setter

Documentation

Detailed documentation can be found here.

Submodules

See the note Regarding submodules for important information on cloning this repo or re-purposing its build template.

FAQs

Package last updated on 10 Oct 2016

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc