
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
fast { property: 'getter' }
Well, I didn't do any extensive testing on all available browsers, but since it uses only builtin functions it should be quite fast. According to this little benchmark it is currently faster than lodash.get on the current LTS version of node.js.
This will never be some kind of "wannabe" lodash killer library. It's just what you see - a simple object property getter.
import oget from 'oget';
const obj = {
uno: 1,
due: {
a: ['abracadabra'],
b: [ [ [ 'horray' ] ] ]
},
tre: 3
};
oget(obj, 'due.a.0'); // abracadabra
oget(obj, '[due][a[0]]'); // abracadabra
oget(obj, 'due.a[0]'); // abracadabra
oget(obj, 'due.b[0][0][0]'); // horray
oget(obj, 'due.b.0.0.0'); // horray
oget(obj, 'due[b].0[0].0'); // horray
oget(obj, 'due.b.0.0[0].missing', 'default_value!'); // default_value!
$ npm install --save oget
$ npm install && npm test
FAQs
fast { property: 'getter' }
The npm package oget receives a total of 18 weekly downloads. As such, oget popularity was classified as not popular.
We found that oget 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.