
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
get-property
Advanced tools
Get a nested property or its value from an object using simple
a.b.cpaths.
npm i get-property --save-dev
npm test
var getProperty = require('get-property');
var obj = {a: 'a', b: {c: 'd'}};
get(obj, 'b.c');
//=> {c: 'd'}
Pass true as the last argument to return only the value:
var obj = {a: 'a', b: {c: 'd'}};
get(obj, 'b.c');
//=> 'd'
get({a: 'a', b: 'b'}, 'a');
//=> {a: 'a'}
get({a: 'a', b: {c: 'd'}}, 'a', true);
//=> 'a'
get({a: 'a', b: {c: 'd'}}, 'b.c');
//=> {c: 'd'}
get({a: 'a', b: {c: 'd'}}, 'b.c', true);
//=> 'd'
get({a: {b: 'c', c: {d: 'e', e: 'f', g: {h: 'i'}}}}, 'a.c.g.h');
//=> {h: 'i'}
get({a: {b: 'c', c: {d: 'e', e: 'f', g: {h: 'i'}}}}, 'a.c.g.h', true);
//=> 'i'
Jon Schlinkert
Other javascript/node.js utils that I maintain:
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on September 22, 2014.
FAQs
Get a nested property or its value from an object using simple `a.b.c` paths.
The npm package get-property receives a total of 3 weekly downloads. As such, get-property popularity was classified as not popular.
We found that get-property 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.