{"_id":"@axolo/json-editor-vue","_rev":"8-aa5dfe595e2ecc6e7352910a0053e55f","name":"@axolo/json-editor-vue","dist-tags":{"latest":"0.3.2"},"versions":{"0.1.0":{"name":"@axolo/json-editor-vue","version":"0.1.0","description":"A Simple JSON Editor of Vue","author":{"name":"Yueming Fang"},"license":"MIT","keywords":["json editor","json editor vue","vue json editor"],"homepage":"https://github.com/axolo/json-editor-vue#readme","repository":{"type":"git","url":"git+https://github.com/axolo/json-editor-vue.git"},"type":"module","main":"dist/index.js","scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"dependencies":{"@codemirror/lang-json":"^6.0.1","@codemirror/state":"^6.3.3","@codemirror/theme-one-dark":"^6.1.2","codemirror":"^6.0.1"},"devDependencies":{"@vitejs/plugin-vue":"^4.5.2","sass":"^1.69.5","vite":"^5.0.7","vue":"^3.3.11"},"_id":"@axolo/json-editor-vue@0.1.0","gitHead":"5302af1d79994ae6207758f365c1d4288221f464","bugs":{"url":"https://github.com/axolo/json-editor-vue/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-YUz85hYgSkB66esQ7xjxSLz6NMPKeDy7kSZF27GCdRH073EWcN+5Usq6a5OE1B1HPISm3E2yue6XVbQ4Ig/c8g==","shasum":"a987aaef2c932753a2d6b717c1360c9aedd1b3b2","tarball":"https://registry.npmjs.org/@axolo/json-editor-vue/-/json-editor-vue-0.1.0.tgz","fileCount":5,"unpackedSize":992821,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx57t2xLzpEkdXbbh/xKJ3s66lvmGq/6kXPNlwown2GgIgOt7jqmaCF/sYg0DHQWsB+9o4xGgmOBOzdsrJYbXMx6w="}]},"_npmUser":{"name":"axolo","email":"fangyueming@foxmail.com"},"directories":{},"maintainers":[{"name":"axolo","email":"fangyueming@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-editor-vue_0.1.0_1702294041011_0.6918801371734158"},"_hasShrinkwrap":false},"0.2.0":{"name":"@axolo/json-editor-vue","version":"0.2.0","description":"A simple JSON editor of Vue","author":{"name":"Yueming Fang"},"license":"MIT","keywords":["json editor","json editor vue","vue json editor"],"homepage":"https://github.com/axolo/json-editor-vue#readme","repository":{"type":"git","url":"git+https://github.com/axolo/json-editor-vue.git"},"type":"module","main":"dist/index.js","scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"dependencies":{"@codemirror/lang-json":"^6.0.1","@codemirror/state":"^6.3.3","@codemirror/theme-one-dark":"^6.1.2","@codemirror/view":"^6.22.2","codemirror":"^6.0.1"},"devDependencies":{"@vitejs/plugin-vue":"^4.5.2","sass":"^1.69.5","vite":"^5.0.7","vue":"^3.3.11"},"_id":"@axolo/json-editor-vue@0.2.0","gitHead":"3df7dbe251f11af0ade9e3a175c8a2b8556d3a5d","bugs":{"url":"https://github.com/axolo/json-editor-vue/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Esu0qtscsHtIkKzir5L7tHsZ7zSECuZG0d9IqYu0tBmUFVujPB8MCAiUVw/dIBdalc8aLHHfKE3JzdMTM0JICw==","shasum":"25f00cd112f278113a327768bea5428336ebfeb9","tarball":"https://registry.npmjs.org/@axolo/json-editor-vue/-/json-editor-vue-0.2.0.tgz","fileCount":5,"unpackedSize":995392,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFrJzqdBLMGCCksTBWscOCjjDOd5Wl+O5mZu3/kaSknGAiAfn4JYA76bXzqTeCxapl5IYmkiplDxbLRc5pSVC5BODQ=="}]},"_npmUser":{"name":"axolo","email":"fangyueming@foxmail.com"},"directories":{},"maintainers":[{"name":"axolo","email":"fangyueming@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-editor-vue_0.2.0_1702378181246_0.3941683465671697"},"_hasShrinkwrap":false},"0.2.1":{"name":"@axolo/json-editor-vue","version":"0.2.1","description":"A simple JSON editor of Vue","author":{"name":"Yueming Fang"},"license":"MIT","keywords":["json editor","json editor vue","vue json editor"],"homepage":"https://github.com/axolo/json-editor-vue#readme","repository":{"type":"git","url":"git+https://github.com/axolo/json-editor-vue.git"},"type":"module","main":"dist/index.js","scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"dependencies":{"@codemirror/lang-json":"^6.0.1","@codemirror/state":"^6.3.3","@codemirror/theme-one-dark":"^6.1.2","@codemirror/view":"^6.22.2","codemirror":"^6.0.1"},"devDependencies":{"@vitejs/plugin-vue":"^4.5.2","sass":"^1.69.5","vite":"^5.0.7","vue":"^3.3.11"},"_id":"@axolo/json-editor-vue@0.2.1","gitHead":"a2f3ee5e60b98d6406370ca120ce9c552d917b87","bugs":{"url":"https://github.com/axolo/json-editor-vue/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-CHD9cvgBpnz0Bg89ha0Cix9kCP0uNRA1Fu1NBOb22ysfO1ScticgepT98TkJXDIvh2SoCxK3ckMAOlMc29wuWQ==","shasum":"714f79103db17a2f2bda56566ed7838208d20fe7","tarball":"https://registry.npmjs.org/@axolo/json-editor-vue/-/json-editor-vue-0.2.1.tgz","fileCount":5,"unpackedSize":995576,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICvRw9PulYqroB2po6gXxbd6QW1FDEIuVHvtN/AQ8ZJ+AiEA+6HGdzMJ9xdfwUOc+Ci1eAKHAvw2ij6009wcoHt6YnY="}]},"_npmUser":{"name":"axolo","email":"fangyueming@foxmail.com"},"directories":{},"maintainers":[{"name":"axolo","email":"fangyueming@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-editor-vue_0.2.1_1702463196374_0.5530930251017963"},"_hasShrinkwrap":false},"0.2.3":{"name":"@axolo/json-editor-vue","version":"0.2.3","description":"A simple JSON editor of Vue","author":{"name":"Yueming Fang"},"license":"MIT","keywords":["json editor","json editor vue","vue json editor"],"homepage":"https://github.com/axolo/json-editor-vue#readme","repository":{"type":"git","url":"git+https://github.com/axolo/json-editor-vue.git"},"type":"module","main":"dist/index.js","scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"dependencies":{"@codemirror/lang-json":"^6.0.1","@codemirror/state":"^6.3.3","@codemirror/theme-one-dark":"^6.1.2","@codemirror/view":"^6.22.2","codemirror":"^6.0.1"},"devDependencies":{"@vitejs/plugin-vue":"^4.5.2","sass":"^1.69.5","vite":"^5.0.7","vue":"^3.3.11"},"_id":"@axolo/json-editor-vue@0.2.3","gitHead":"383649d49c4e5a904e38a34ca539b1abb2abea54","bugs":{"url":"https://github.com/axolo/json-editor-vue/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-1fZkw6Pnt6wxITBWRoqruV8FvWX2BMeLjbZUEELv8o7JpjV6Hm3I7etZhyxdxhqbMBRrBOd1DZYOKvKfW48Gmw==","shasum":"248b7d770bd6416db71d9064bcae888a810797bc","tarball":"https://registry.npmjs.org/@axolo/json-editor-vue/-/json-editor-vue-0.2.3.tgz","fileCount":5,"unpackedSize":995881,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClRI8C36/FnQFL5PQJoWK5ryVWuv1HIYxFU+vqcG1CkAIhAPjzdPRX2cSd2FzTZKkHpFcdV4MbYDAUKXJ3woDUpixN"}]},"_npmUser":{"name":"axolo","email":"fangyueming@foxmail.com"},"directories":{},"maintainers":[{"name":"axolo","email":"fangyueming@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-editor-vue_0.2.3_1702626984890_0.5627283031532859"},"_hasShrinkwrap":false},"0.3.0":{"name":"@axolo/json-editor-vue","version":"0.3.0","description":"A simple JSON editor of Vue","author":{"name":"Yueming Fang"},"license":"MIT","keywords":["json editor","json editor vue","vue json editor"],"homepage":"https://github.com/axolo/json-editor-vue#readme","repository":{"type":"git","url":"git+https://github.com/axolo/json-editor-vue.git"},"type":"module","main":"dist/index.js","scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"dependencies":{"@codemirror/lang-json":"^6.0.1","@codemirror/theme-one-dark":"^6.1.2","codemirror":"^6.0.1"},"devDependencies":{"@vitejs/plugin-vue":"^5.0.3","sass":"^1.70.0","sass-loader":"^14.1.0","vite":"^5.0.12","vite-plugin-lib-inject-css":"^1.3.0","vue":"^3.4.15"},"_id":"@axolo/json-editor-vue@0.3.0","gitHead":"7cfe0325d50604353e1621bca195fc82ee811266","bugs":{"url":"https://github.com/axolo/json-editor-vue/issues"},"_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-1gcbNbaZXM1FOCKM7qJXZNq3+kdchKrwflbvBp9DSpHhN5BaWue4DAXSMNtWOBhL8DRc8zwp+cb5cJgY246iFA==","shasum":"e07a44248478e2e091c0cf9cef011443061ce581","tarball":"https://registry.npmjs.org/@axolo/json-editor-vue/-/json-editor-vue-0.3.0.tgz","fileCount":6,"unpackedSize":994333,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBk7OkYcGHkOJlm0V+1g+0l2QgS8Vp5KWLBvUsfKHWpwAiEAusLMWxa0KKtpXIHqjJXi7Y/XgV+gKt8xJmGghg6AAek="}]},"_npmUser":{"name":"axolo","email":"fangyueming@foxmail.com"},"directories":{},"maintainers":[{"name":"axolo","email":"fangyueming@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-editor-vue_0.3.0_1707289345034_0.03977897230976768"},"_hasShrinkwrap":false},"0.3.1":{"name":"@axolo/json-editor-vue","version":"0.3.1","description":"A simple JSON editor of Vue","author":{"name":"Yueming Fang"},"license":"MIT","keywords":["json editor","json editor vue","vue json editor"],"homepage":"https://github.com/axolo/json-editor-vue#readme","repository":{"type":"git","url":"git+https://github.com/axolo/json-editor-vue.git"},"type":"module","main":"dist/index.js","scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"dependencies":{"@codemirror/lang-json":"^6.0.1","@codemirror/theme-one-dark":"^6.1.2","codemirror":"^6.0.1"},"devDependencies":{"@vitejs/plugin-vue":"^5.0.3","sass":"^1.70.0","sass-loader":"^14.1.0","vite":"^5.0.12","vite-plugin-lib-inject-css":"^1.3.0","vue":"^3.4.15"},"_id":"@axolo/json-editor-vue@0.3.1","gitHead":"e5377095f3e6e807ef5f97d7bdddf25a9e9ee7da","bugs":{"url":"https://github.com/axolo/json-editor-vue/issues"},"_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-AN0OfQAUx8h9b6l7WXQ0hISGHEtUtb8JdggwoPN5GmOcl0TbQJIbccG3oC/m1+Tu4WUE5l2hU7VYvztlgnoHUw==","shasum":"f10b75cd98b03ad8d71daeac2bc4b41e1272911e","tarball":"https://registry.npmjs.org/@axolo/json-editor-vue/-/json-editor-vue-0.3.1.tgz","fileCount":6,"unpackedSize":994341,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+h4bsnPk1VIRm9jOGdFS5gKPjqIZ8wJjy908vkkO3JAiAE1kV9IvdA72pSGz9tIpN8IYm540Y+81TDqCGhacD3bw=="}]},"_npmUser":{"name":"axolo","email":"fangyueming@foxmail.com"},"directories":{},"maintainers":[{"name":"axolo","email":"fangyueming@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-editor-vue_0.3.1_1707290588656_0.5188930285540116"},"_hasShrinkwrap":false},"0.3.2":{"name":"@axolo/json-editor-vue","version":"0.3.2","description":"A simple JSON editor of Vue","author":{"name":"Yueming Fang"},"license":"MIT","keywords":["json editor","json editor vue","vue json editor"],"homepage":"https://github.com/axolo/json-editor-vue#readme","repository":{"type":"git","url":"git+https://github.com/axolo/json-editor-vue.git"},"type":"module","main":"dist/index.js","scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"dependencies":{"@codemirror/lang-json":"^6.0.1","@codemirror/theme-one-dark":"^6.1.2","codemirror":"^6.0.1"},"devDependencies":{"@vitejs/plugin-vue":"^5.0.4","sass":"^1.71.1","sass-loader":"^14.1.1","vite":"^5.1.5","vite-plugin-lib-inject-css":"^2.0.0","vue":"^3.4.21"},"_id":"@axolo/json-editor-vue@0.3.2","gitHead":"85dfd7c519915482ffe1a66800b04121d9f93551","bugs":{"url":"https://github.com/axolo/json-editor-vue/issues"},"_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-tSWPQ4xEEzt1PZJQI7ekUE+siEOB3a8hop/chj4cvD2G1fcq7X2lgcRLHcki7xxz8zS0RPFBChsS+//wtySO0A==","shasum":"3df1f59c4e6e59decb207ccf4b413728dc0f2110","tarball":"https://registry.npmjs.org/@axolo/json-editor-vue/-/json-editor-vue-0.3.2.tgz","fileCount":6,"unpackedSize":999411,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmjLjFJeJlDmQCDvZqwsJJD2Q8HsTWlM8R+1RP9zsMaAIhAP2Er/k+6UCZyjp2fMnsk7NQsl6P8prYrd5RErS4k7bz"}]},"_npmUser":{"name":"axolo","email":"fangyueming@foxmail.com"},"directories":{},"maintainers":[{"name":"axolo","email":"fangyueming@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-editor-vue_0.3.2_1709773606205_0.5326264571743962"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-11T11:27:20.903Z","0.1.0":"2023-12-11T11:27:21.259Z","modified":"2024-03-07T01:06:46.954Z","0.2.0":"2023-12-12T10:49:41.495Z","0.2.1":"2023-12-13T10:26:36.633Z","0.2.2":"2023-12-15T07:41:53.217Z","0.2.3":"2023-12-15T07:56:25.154Z","0.3.0":"2024-02-07T07:02:25.257Z","0.3.1":"2024-02-07T07:23:08.885Z","0.3.2":"2024-03-07T01:06:46.498Z"},"maintainers":[{"name":"axolo","email":"fangyueming@foxmail.com"}],"description":"A simple JSON editor of Vue","homepage":"https://github.com/axolo/json-editor-vue#readme","keywords":["json editor","json editor vue","vue json editor"],"repository":{"type":"git","url":"git+https://github.com/axolo/json-editor-vue.git"},"author":{"name":"Yueming Fang"},"bugs":{"url":"https://github.com/axolo/json-editor-vue/issues"},"license":"MIT","readme":"# @axolo/json-editor-vue\n\nA simple JSON editor of Vue based on [CodeMirror](https://codemirror.net/) Version 6.\n\n## Install\n\n```bash\nnpm i @axolo/json-editor-vue\n```\n\n## Usage\n\n```vue\n<script>\nimport JsonEditor from '@axolo/json-editor-vue'\n\nexport default {\n  components: {\n    JsonEditor\n  },\n  data() {\n    return {\n      json: {\n        required: true,\n        message: 'please input content'\n      }\n    }\n  }\n}\n</script>\n\n<template>\n  <json-editor\n    v-model=\"json\"\n    codec\n    dark\n    placeholder=\"please input json\"\n    @change=\"console.log\"\n    @error=\"console.error\"\n  />\n</template>\n```\n\n## Props\n\n|     Name      |         Type          | Default |            Description             |\n| ------------- | --------------------- | ------- | ---------------------------------- |\n| `modelValue`  | `any`                 |         | JSON string, object, array ...     |\n| `placeholder` | `String`              |         | placeholder                        |\n| `readonly`    | `Boolean`             | `false` | readonly                           |\n| `dark`        | `Boolean`             | `false` | dark theme as oneDark              |\n| `codec`       | `[Boolean, Array]`    | `false` | See [codec](#codec)                |\n| `format`      | `[Boolean, Function]` | `false` | See [format](#format) (TODO)       |\n| `extensions`  | `Array`               | `[]`    | extra codemirror extensions (TODO) |\n\n### codec\n\n|  Value  |                           Description                           |\n| ------- | --------------------------------------------------------------- |\n| `false` | default, do nothing, `modelValue` is JSON string                |\n| `true`  | `[JSON.stringify, JSON.parse]`, `modelValue` is not JSON string |\n| `Array` | custom codec, Aarray of [encode, decode] (TODO)                 |\n\n### format\n\n|   Value    |           Description           |\n| ---------- | ------------------------------- |\n| `false`    | default, do nothing             |\n| `true`     | `JSON.stringify(json, null, 2)` |\n| `Function` | custom formatter                |\n\n## Emits\n\n|        Name         | Parameters |           Description            |\n| ------------------- | ---------- | -------------------------------- |\n| `update:modelValue` | json       | update modelValue                |\n| `change`            | json       | value of modelValue              |\n| `error`             | error      | throw error or `false` when blur |\n\n> Yueming Fang\n> 2023-12-09\n","readmeFilename":"README.md"}