Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
mixin-object
Advanced tools
Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.
Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.
If you only want to combine own-properties, use extend-shallow.
Install with npm
$ npm i mixin-object --save
Install with bower
$ bower install mixin-object --save
var mixin = require('mixin-object');
var obj = {c: 'c'};
var foo = mixin({a: 'a'}, {b: 'b'});
console.log(foo);
//=> {c: 'c', a: 'a', b: 'b'}
console.log(obj);
//=> {c: 'c'}
mixin({}, {a: 'a'}, {b: 'b'});
//=> {a: 'a', b: 'b'}
extend
but recursively copies only the missing properties/values to the target object.Object
constructor.Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2014-2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on July 05, 2015.
FAQs
Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.
The npm package mixin-object receives a total of 715,534 weekly downloads. As such, mixin-object popularity was classified as popular.
We found that mixin-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.