# falcor-json-graph

> A set of factory functions for creating JSON Graph values.

Latest version **3.2.1** (published 2019-12-19) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install falcor-json-graph
pnpm add falcor-json-graph
yarn add falcor-json-graph
bun add falcor-json-graph
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.1 |
| Published | 2019-12-19 |
| First published | 2015-08-17 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 64.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 56 |
| Author | Jafar Husain |
| Maintainers | abritinthebay, barb_the_builder, donutespresso, ghermeto, gsimpson, hekike, jcranendonk, kaylie, kkwon, lrowe, mmarchini, satyend, tbranyen, tvui, tvuiops |
| Keywords | falcorjs, Observable, JSON, JSON Graph |

## Links

- npm: https://www.npmjs.com/package/falcor-json-graph
- Repository: https://github.com/Netflix/falcor-json-graph
- Issues: https://github.com/Netflix/falcor-json-graph/issues
- npm.io page: https://npm.io/package/falcor-json-graph

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

- 3.2.1 (latest) — 2019-12-19
- 3.2.0 — 2019-12-18
- 3.1.0 — 2019-01-15
- 3.0.0 — 2019-01-08
- 2.2.2 — 2018-08-24
- 2.2.1 — 2018-01-03
- 2.2.0 — 2017-12-22
- 2.1.1 — 2017-12-21
- 2.1.0 — 2017-12-12
- 1.1.7 — 2015-10-28
- 1.1.6 — 2015-10-28
- 2.0.0 — 2015-10-03
- 1.1.5 — 2015-08-18
- 1.1.4 — 2015-08-18
- 1.1.3 — 2015-08-18
- … 2 more at https://npm.io/package/falcor-json-graph/versions

## README

# falcor-json-graph

A set of factory functions for creating JSON Graph values.

## API

```JavaScript
var jsonGraph = require('falcor-json-graph');

// { $type: "atom", value: "a string wrapped in an atom" }
var atom = jsonGraph.atom("a string wrapped in an atom");

// { $type: "atom" }
var undefinedAtom = jsonGraph.undefinedAtom();

// { $type: "ref", value: ["todos", 0, "name"] }
var ref = jsonGraph.ref(["todos", 0, "name"]);

// { $type: "error", value: "something bad happened." }
var error = jsonGraph.error("something bad happened.");

// { path: [ 'user', 'age' ], value: 25 }
var pathValue = jsonGraph.pathValue(["user", "age"], 25);

// { path: [ 'user', 'age' ], invalidated: true }
var pathValue = jsonGraph.pathInvalidation(["user", "age"])
```

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