0.0.7 • Published 3 years ago

vue-json-preview v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vue-json-preview

Debug json data in ease and fast

Preview

Alt Text

Demo

demo

Todo

  • Auto hide when env is Production
  • Flexible styling
  • Default theme variant
  • Copy button for each single object in Array

Install

npm install vue-json-preview --save

Usage

Use in vue project

<template>
  <vue-json-preview :data="data" :position="position" />
</template>
<script>

import VueJsonPreview from "vue-json-preview";

export default {
  data() {
    return {
      data: ["linux", "windows", "osx", "solaris"],
      position: "BOTTOM_RIGHT"
    }
  },
  components: {
    VueJsonPreview
  }
}
</script>

Options

Props

PropsTypeDefaultDescription
dataObject, Array, String, BooleanArrayData you want to debug
positionStringBOTTOM_RIGHTThe position of element in DOM, optional value: 'BOTTOM_RIGHT', 'BOTTOM_LEFT', 'TOP_RIGHT', 'TOP_LEFT'

License

MIT

Contributions

If you find issue or bug please refer to issue section. If you think this needs couple improvements please discuss and send PR.

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago