
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
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 15 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.