JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7364
  • Score
    100M100P100Q128913F
  • License MIT

Svelte JSON Viewer Component

Package Exports

  • svelte-json-tree

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 (svelte-json-tree) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

svelte-json-tree

svelte-json-tree

Svelte JSON Viewer Component. Supports Map, Set, Iterable, Symbol.

Try it out on repl.

Install

yarn install svelte-json-tree

Usage

<script>
  import JSONTree from 'svelte-json-tree'
  // your json data to view
  const value = {
    array: [1, 2, 3],
    bool: true,
    object: {
      foo: 'bar'
    }
  }
</script>
<JSONTree {value} />

License

MIT