
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
deep-object
Advanced tools
A CRUD API to manipulate objects in depth. Get, Set, Update and Delete functions available.
A CRUD API to manipulate objects in depth. Get, Set, Update and Delete functions available.
With npm
npm install deep-object
var deepObj = require('deep-object');
var obj = {
level1:{
level2:{
level3:{
name: "Foo"
}
},
anotherLevel2: "bar"
}
};
deepObj.get(obj, ["level1", "level2"]); //returns {level3: {name: "Foo"}}
deepObj.set(obj, ["level1", "level2"], "FooBar"); //Sets level2 to "FooBar"
deepObj.remove(obj, ["level1", "level2"]); //Object now becomes, {level1: {}}
Gets the value at the given path
object is a JS objectpath is a string array containing keys from outermost to innermost.Sets/updates given value at the path.
object is a JS objectpath is a string array containing keys from outermost to innermost.value is any valid JS variable.Removes the given path element.
object is a JS objectpath is a string array containing keys from outermost to innermost.I needed this for a project. Didn't look through NPM for this. Here is my implementation.
FAQs
A CRUD API to manipulate objects in depth. Get, Set, Update and Delete functions available.
The npm package deep-object receives a total of 7 weekly downloads. As such, deep-object popularity was classified as not popular.
We found that deep-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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.