Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastpath

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastpath

An optimised Jsonpath parser

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fastPath Build Status

An attempt at an optimized jsonpath parser

Check the spec here: http://goessner.net/articles/JsonPath/

Use

var fastpath = require('fastpath');

var matcher = fastpath(pattern);

// or

var matcher = fastpath({
    name: pattern,
    name2: pattern2
});

matcher.evaluate(object);
PatternDescription
$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.

Keywords

FAQs

Package last updated on 10 May 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc