
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
An attempt at an optimized jsonpath parser
Check the spec here: http://goessner.net/articles/JsonPath/
var fastpath = require('fastpath');
var matcher = fastpath(pattern);
// or
var matcher = fastpath({
name: pattern,
name2: pattern2
});
matcher.evaluate(object);
Pattern | Description |
---|---|
$ | the root object/element |
@ | the current object/element |
. or [] | child operator |
.. | recursive descent |
* | wildcard - All objects/elements regardless of their names |
[] | Native array operator |
[,] | Names or array indices |
[start : end : step] | Slices subset of the array based on the start, end and step values |
?() | applies a filter |
The tape tests have most of the patterns supported by the spec.
FAQs
An optimised Jsonpath parser
The npm package fastpath receives a total of 2 weekly downloads. As such, fastpath popularity was classified as not popular.
We found that fastpath 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
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.