2.1.0 • Published 8 years ago

fastpath v2.1.0

Weekly downloads
60
License
-
Repository
github
Last release
8 years ago

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 : stepSlices 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.

2.1.0

8 years ago

2.0.0

8 years ago

1.0.7

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.1

9 years ago

0.1.0

10 years ago

0.0.1

10 years ago