falcor-json-graph
A set of factory functions for creating JSON Graph values.
Last updated a year ago by jcranendonk .
Apache 2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install falcor-json-graph 
SYNC missed versions from official npm registry.

falcor-json-graph

A set of factory functions for creating JSON Graph values.

API

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"])

Current Tags

  • 3.2.1                                ...           latest (a year ago)

17 Versions

  • 3.2.1                                ...           a year ago
  • 3.2.0                                ...           a year ago
  • 3.1.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.2.2                                ...           2 years ago
  • 2.2.1                                ...           3 years ago
  • 2.2.0                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 1.1.7                                ...           5 years ago
  • 1.1.6                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.1.5                                ...           5 years ago
  • 1.1.4                                ...           5 years ago
  • 1.1.3                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago

Copyright 2014 - 2017 © taobao.org |