JSPM

@graphistry/falcor-json-graph

2.9.10
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1716
  • Score
    100M100P100Q122697F
  • License Apache 2.0

A set of factory functions for creating JSON Graph values.

Package Exports

  • @graphistry/falcor-json-graph

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@graphistry/falcor-json-graph) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

falcor-json-graph

A set of factory functions for creating JSON Graph values.

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

var atom = jsonGraph.atom("a string wrapped in an atom"); // creates { $type: "atom", value: "a string wrapped in an atom" }
var ref = jsonGraph.ref("todos[0].name"); // creates { $type: "ref", value: ["todos", 0, "name"] }
var error = jsonGraph.error("something bad happened."); // creates { $type: "error", value: "something bad happened." }