# fastpath

> An optimised Jsonpath parser

Latest version **2.1.0** (published 2016-05-10) · 0 weekly downloads

## Install

```sh
npm install fastpath
pnpm add fastpath
yarn add fastpath
bun add fastpath
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2016-05-10 |
| First published | 2014-09-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 40 |
| Author | Poornima Venkatakrishnan |
| Maintainers | pvenkatakrishnan |
| Keywords | jsonpath, parser, json |

## Links

- npm: https://www.npmjs.com/package/fastpath
- Repository: https://github.com/pvenkatakrishnan/fastPath
- Homepage: https://github.com/pvenkatakrishnan/fastPath#readme
- Issues: https://github.com/pvenkatakrishnan/fastPath/issues
- npm.io page: https://npm.io/package/fastpath

## Dependencies (1)

- [babel-runtime](https://npm.io/package/babel-runtime.md) 4.7.3

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.1.0 (latest) — 2016-05-10
- 2.0.0 — 2016-05-04
- 1.0.7 — 2015-03-18
- 0.1.3 — 2015-03-16
- 0.1.2 — 2015-03-16
- 1.0.6 — 2015-03-16
- 1.0.5 — 2015-03-16
- 1.0.4 — 2015-03-16
- 1.0.3 — 2015-03-02
- 1.0.2 — 2015-03-02
- 1.0.1 — 2015-03-02
- 1.0.0 — 2015-03-02
- 0.1.1 — 2014-12-17
- 0.1.0 — 2014-09-10
- 0.0.1 — 2014-09-05

## README

fastPath [![Build Status](https://travis-ci.org/pvenkatakrishnan/fastPath.svg)](https://travis-ci.org/pvenkatakrishnan/fastPath)
==========

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);
```

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

---
_Source: https://npm.io/package/fastpath · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
