Getting Started
This guide covers the data-visor-vue npm package (Vue 3 component). For the Chromium extension, see Web extension.
Installation
bash
pnpm add data-visor-vueBasic Usage
vue
<script setup>
import { DataVisor } from 'data-visor-vue'
const data = `{
"users": [
{
"id": 1,
"name": "Alice",
"roles": ["admin", "user"],
"meta": { "verified": true, "score": 9.5 }
}
]
}`
</script>
<template>
<DataVisor :data="data" lang="json" />
</template>Demo
Supported Formats
DataVisor currently supports the following formats via the lang prop:
jsonyamlxml
Requirements
- Vue 3.x
- Shiki (included as a dependency)