
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@jf/prop-sep
Advanced tools
Check, get, set and remove properties from nested objects using any separator.
Check, get, set and remove properties from nested objects using any separator.
const propSep = require('@jf/prop-sep');
const obj = {};
propSep.set(obj, 'a.b.c', 5);
console.log(obj); // { a : { b : { c : 5 } } }
Also, you can attach and detach this methods to objects and classes.
As instance methods:
const propSep = require('@jf/prop-sep');
class Class {}
propSep.attach(Class);
const obj = new Class();
obj.set('a.b.c', 5);
console.log(obj); // { a : { b : { c : 5 } } }
As class methods:
const propSep = require('@jf/prop-sep');
class Class {}
class Other extends Class {}
propSep.attach(Class, false);
const obj = {};
Class.set(obj, 'a.b.c', 5);
console.log(obj); // { a : { b : { c : 5 } } }
Other.set(obj, 'b', 1);
console.log(obj); // { a : { b : { c : 5 } }, b : 1 }
See test file for examples.
FAQs
Check, get, set and remove properties from nested objects using any separator.
We found that @jf/prop-sep demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.