All Projects → jonschlinkert → defaults-deep

jonschlinkert / defaults-deep

Licence: MIT license
Like `extend` but recursively copies only the missing properties/values to the target object.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to defaults-deep

js-deep-sort-object
Simple module to sort objects recursively by its keys
Stars: ✭ 19 (-26.92%)
Mutual labels:  deep
prunnable-layers-pytorch
Prunable nn layers for pytorch.
Stars: ✭ 47 (+80.77%)
Mutual labels:  deep
git-picked
List merged and cherry-picked branches
Stars: ✭ 30 (+15.38%)
Mutual labels:  merge
pascalcase
Convert a string to pascal case (upper camel case). Used by more than 8.7 million projects on GitHub! Please follow this library's author: https://github.com/jonschlinkert
Stars: ✭ 35 (+34.62%)
Mutual labels:  jonschlinkert
PixelGlitch
Image glitch visualization using various Pixel Sorting methods for Processing
Stars: ✭ 25 (-3.85%)
Mutual labels:  merge
git-json-merge
A git merge driver that use xdiff to automatically resolve merge conflicts in json files. This project was inspired by git-po-merge.
Stars: ✭ 86 (+230.77%)
Mutual labels:  merge
tale-pug
Tale Pug is the popular JavaScript Template Engine Pug, formerly Jade, for PHP!
Stars: ✭ 32 (+23.08%)
Mutual labels:  extend
cidr-merger
A simple command line tool to merge ip/ip cidr/ip range, supports IPv4/IPv6
Stars: ✭ 99 (+280.77%)
Mutual labels:  merge
webgrabplus-siteinipack
Official user supported WebGrab+Plus Siteini.pack repo
Stars: ✭ 133 (+411.54%)
Mutual labels:  merge
parse-git-config
Parse `.git/config` into a JavaScript object. sync or async.
Stars: ✭ 55 (+111.54%)
Mutual labels:  jonschlinkert
tcl-modules
A collection of pure Tcl, production-ready micro packages
Stars: ✭ 25 (-3.85%)
Mutual labels:  extend
omit-empty
Recursively omit empty properties from an object. Omits empty objects, arrays, strings, and optionally zero. Similar results to what you would expect with `compact` for arrays.
Stars: ✭ 71 (+173.08%)
Mutual labels:  jonschlinkert
iextrading4j-hist
IEX Trading library to parse TOPS and DEEP multicast packets
Stars: ✭ 20 (-23.08%)
Mutual labels:  deep
optkeras
OptKeras: wrapper around Keras and Optuna for hyperparameter optimization
Stars: ✭ 29 (+11.54%)
Mutual labels:  deep
mount-vue-component
a tiny utility to programatically create and mount Vue 3 components (e.g. a Vue.extend replacement)
Stars: ✭ 73 (+180.77%)
Mutual labels:  extend
WormHole
WormHole allows to share classes between Flutter and Native Platform (android / ios)
Stars: ✭ 36 (+38.46%)
Mutual labels:  extend
TOAD
AI-based pathology predicts origins for cancers of unknown primary - Nature
Stars: ✭ 138 (+430.77%)
Mutual labels:  deep
Differentia.js
No longer being supported or maintained. A Graph Theory & Data Structure Library for JavaScript.
Stars: ✭ 13 (-50%)
Mutual labels:  deep
git-rebase-via-merge
Fix rebase conflicts with minimum pain.
Stars: ✭ 41 (+57.69%)
Mutual labels:  merge
snapdragon-lexer
Converts a string into an array of tokens, with useful methods for looking ahead and behind, capturing, matching, et cetera.
Stars: ✭ 19 (-26.92%)
Mutual labels:  jonschlinkert

defaults-deep NPM version Build Status

Like extend but recursively copies only the missing properties/values to the target object.

Install

Install with npm

$ npm i defaults-deep --save

Install with bower

$ bower install defaults-deep --save

Usage

var defaults = require('defaults-deep');

defaults({a: {one: 'one'}}, {a: {two: 'two'}})
//=> {a: {one: 'one', two: 'two'}};

Related projects

  • assign-deep: Deeply assign the enumerable properties of source objects to a destination object. If a callback… more
  • extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util.
  • merge-deep: Recursively merge values in a javascript object.
  • mixin-deep: Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone.
  • omit-deep: Recursively omit the given keys from an object.

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on May 28, 2015.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].