{"_id":"vue-codemirror-lite","_rev":"7-33ec4e0c812d82178ea3c9e4e967627e","name":"vue-codemirror-lite","description":"Lite Codemirror component for Vue.js","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"vue-codemirror-lite","version":"1.0.0","description":"Lite Codemirror component for Vue.js","main":"index.js","scripts":{"dev":"webpack-dev-server --open","build":"webpack --config webpack.config.js","deploy":"git subtree push --prefix=demo-dist origin gh-pages"},"repository":{"type":"git","url":"git+https://github.com/cnu4/vue-codemirror-lite.git"},"keywords":["vue-codemirror-lite","vue codemirror","codemirror","vue"],"author":{"name":"fangxw"},"license":"MIT","bugs":{"url":"https://github.com/cnu4/vue-codemirror-lite/issues"},"homepage":"https://github.com/cnu4/vue-codemirror-lite","dependencies":{"codemirror":"^5.22.0"},"devDependencies":{"css-loader":"^0.26.1","extract-text-webpack-plugin":"^1.0.1","html-webpack-plugin":"^2.26.0","style-loader":"^0.13.1","vue-loader":"^10.0.2","vue-template-compiler":"^2.1.8","webpack":"^2.2.0-rc.3","webpack-dev-server":"^1.16.2"},"gitHead":"8fdfe3b20c1d30fdb61a6f1bdc0fa19e2a93772c","_id":"vue-codemirror-lite@1.0.0","_shasum":"29bb503ec0b151f08959bd76ea15c363da0485e9","_from":".","_npmVersion":"3.8.5","_nodeVersion":"6.9.1","_npmUser":{"name":"cnu4","email":"fangxw1004@qq.com"},"dist":{"shasum":"29bb503ec0b151f08959bd76ea15c363da0485e9","tarball":"https://registry.npmjs.org/vue-codemirror-lite/-/vue-codemirror-lite-1.0.0.tgz","integrity":"sha512-LCQiCogUmof2/7h0MsaUFOLZfqXZg+FttSgGKYSS/LNx7kbSA2+AryS/JXyKRWy3t6+sXLj6RqwH+CYqOU349A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDS6k2eOlaZaF3UrzUt+xJ3+EeVfnyqraepr9ZC7fNwjgIhAJSsIriDFGMM0LLwjy+mQH99pgVof5Y4YuJRHIqyTw5I"}]},"maintainers":[{"name":"cnu4","email":"fangxw1004@qq.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/vue-codemirror-lite-1.0.0.tgz_1484304091085_0.5472711774054915"},"directories":{}},"1.0.1":{"name":"vue-codemirror-lite","version":"1.0.1","description":"Lite Codemirror component for Vue.js","main":"index.js","scripts":{"dev":"webpack-dev-server --open","build":"webpack --config webpack.config.js","deploy":"git subtree push --prefix=demo-dist origin gh-pages"},"repository":{"type":"git","url":"git+https://github.com/cnu4/vue-codemirror-lite.git"},"keywords":["vue-codemirror-lite","vue codemirror","codemirror","vue"],"author":{"name":"fangxw"},"license":"MIT","bugs":{"url":"https://github.com/cnu4/vue-codemirror-lite/issues"},"homepage":"https://github.com/cnu4/vue-codemirror-lite","dependencies":{"codemirror":"^5.22.0"},"devDependencies":{"css-loader":"^0.26.1","extract-text-webpack-plugin":"^1.0.1","html-webpack-plugin":"^2.26.0","style-loader":"^0.13.1","vue-loader":"^10.0.2","vue-template-compiler":"^2.1.8","webpack":"^2.2.0-rc.3","webpack-dev-server":"^1.16.2"},"gitHead":"a5094ed1e9855155d17a3b571cadc175c9f4dc57","_id":"vue-codemirror-lite@1.0.1","_shasum":"3a21cda892cb706bbde80ded2be4a73c1425a148","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"cnu4","email":"fangxw1004@qq.com"},"dist":{"shasum":"3a21cda892cb706bbde80ded2be4a73c1425a148","tarball":"https://registry.npmjs.org/vue-codemirror-lite/-/vue-codemirror-lite-1.0.1.tgz","integrity":"sha512-vPkkXLhhAKX6+k5DvuOtdyMUgzcIc0MdxxlDcKmTKnpa5tnx4EQCenKiwLV2ouOFKTHn5nE51OMt0wEvbAWTqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEuspjBcmV+jLa9JORaiG/2OIkH960LKS6D41TBba/szAiEA+WGiP6OanLowxgIE5MZCZzIOA1qkL8Kk5CTMJdZpYvo="}]},"maintainers":[{"name":"cnu4","email":"fangxw1004@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-codemirror-lite-1.0.1.tgz_1496053373822_0.7184899356216192"},"directories":{}},"1.0.2":{"name":"vue-codemirror-lite","version":"1.0.2","description":"Lite Codemirror component for Vue.js","main":"index.js","scripts":{"dev":"webpack-dev-server --open","build":"webpack --config webpack.config.js","deploy":"git subtree push --prefix=demo-dist origin gh-pages"},"repository":{"type":"git","url":"git+https://github.com/cnu4/vue-codemirror-lite.git"},"keywords":["vue-codemirror-lite","vue codemirror","codemirror","vue"],"author":{"name":"fangxw"},"license":"MIT","bugs":{"url":"https://github.com/cnu4/vue-codemirror-lite/issues"},"homepage":"https://github.com/cnu4/vue-codemirror-lite","dependencies":{"codemirror":"^5.22.0"},"devDependencies":{"css-loader":"^0.26.1","extract-text-webpack-plugin":"^1.0.1","html-webpack-plugin":"^2.26.0","style-loader":"^0.13.1","vue-loader":"^13.3.0","vue-template-compiler":"^2.1.8","webpack":"^3.7.1","webpack-dev-server":"^1.16.2"},"gitHead":"1d4efde0a92a157d6125af92d9726a5e5a337e87","_id":"vue-codemirror-lite@1.0.2","_shasum":"ee6c679689b723b3af380342846fc4fdce6b7fb6","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"cnu4","email":"fangxw1004@qq.com"},"dist":{"shasum":"ee6c679689b723b3af380342846fc4fdce6b7fb6","tarball":"https://registry.npmjs.org/vue-codemirror-lite/-/vue-codemirror-lite-1.0.2.tgz","integrity":"sha512-alws77E8bKjSg2etVPvikFiy2GlcS7k+GWiM1cTlGxztjiLmuYHLbzi+0NVXtNpeUnHRJTH1QtVex+KLRgYfVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+cDWWzrUZNaSH9YUIW+44VAB6Z/Pf7Zozsw8F4Fn6VAIgDS4pbMSc/qVI52L08d5JX8EQaHdNwddZQR9cFbmR/OI="}]},"maintainers":[{"name":"cnu4","email":"fangxw1004@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-codemirror-lite-1.0.2.tgz_1508078379200_0.754734379472211"},"directories":{}},"1.0.3":{"name":"vue-codemirror-lite","version":"1.0.3","description":"Lite Codemirror component for Vue.js","main":"index.js","scripts":{"dev":"webpack-dev-server --open","build":"webpack --config webpack.config.js","deploy":"git subtree push --prefix=demo-dist origin gh-pages"},"repository":{"type":"git","url":"git+https://github.com/cnu4/vue-codemirror-lite.git"},"keywords":["vue-codemirror-lite","vue codemirror","codemirror","vue"],"author":{"name":"fangxw"},"license":"MIT","bugs":{"url":"https://github.com/cnu4/vue-codemirror-lite/issues"},"homepage":"https://github.com/cnu4/vue-codemirror-lite","dependencies":{"codemirror":"^5.22.0"},"devDependencies":{"css-loader":"^0.26.1","extract-text-webpack-plugin":"^1.0.1","html-webpack-plugin":"^2.26.0","style-loader":"^0.13.1","vue-loader":"^13.3.0","vue-template-compiler":"^2.1.8","webpack":"^3.7.1","webpack-dev-server":"^1.16.2"},"gitHead":"e5ebb86f398ab4346656db95da85c97c5a8a0ab5","_id":"vue-codemirror-lite@1.0.3","_shasum":"41313265fe92e62646aab22f3c991dd6f84f4807","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"cnu4","email":"fangxw1004@qq.com"},"dist":{"shasum":"41313265fe92e62646aab22f3c991dd6f84f4807","tarball":"https://registry.npmjs.org/vue-codemirror-lite/-/vue-codemirror-lite-1.0.3.tgz","integrity":"sha512-7oMEoHFRZy4IF2l2P3mgzawXWODOye6eDAHCQd1/Zi0pYRPMPG0Y0W9M4O9Ak01Gxj5UhJZ5luUy55PVZCCpxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/kF+f/zpXucalbdGBkapGawm1B+jw1IHyw3HfejxK4AIhAI1DC/VjRRHgwtGkcUokilUFPCDNhiZFENJlI179e/o/"}]},"maintainers":[{"name":"cnu4","email":"fangxw1004@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-codemirror-lite-1.0.3.tgz_1510458128428_0.003470072755590081"},"directories":{}},"1.0.4":{"name":"vue-codemirror-lite","version":"1.0.4","description":"Lite Codemirror component for Vue.js","main":"index.js","scripts":{"dev":"cross-env NODE_ENV=development node_modules/.bin/webpack-dev-server --open","build:demo":"cross-env NODE_ENV=production webpack --config webpack.config.js","build":"webpack --config webpack.config.umd.js","deploy":"cd demo-dist && git add --all && git commit -m \"Release at $(date)\" && git push"},"repository":{"type":"git","url":"git+https://github.com/cnu4/vue-codemirror-lite.git"},"keywords":["vue-codemirror-lite","vue codemirror","codemirror","vue"],"author":{"name":"fangxw"},"license":"MIT","bugs":{"url":"https://github.com/cnu4/vue-codemirror-lite/issues"},"homepage":"https://github.com/cnu4/vue-codemirror-lite","dependencies":{"codemirror":"^5.22.0"},"devDependencies":{"cross-env":"^5.1.3","css-loader":"^0.26.1","extract-text-webpack-plugin":"^1.0.1","html-webpack-plugin":"^2.26.0","style-loader":"^0.13.1","vue-loader":"^13.3.0","vue-template-compiler":"^2.1.8","webpack":"^3.7.1","webpack-dev-server":"^1.16.2"},"gitHead":"96197538ccc49170567ed50dac7400b66df2330b","_id":"vue-codemirror-lite@1.0.4","_shasum":"48a5cd7d17c0914503c8cd9d9b56b438e49c3410","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"cnu4","email":"fangxw1004@qq.com"},"dist":{"shasum":"48a5cd7d17c0914503c8cd9d9b56b438e49c3410","tarball":"https://registry.npmjs.org/vue-codemirror-lite/-/vue-codemirror-lite-1.0.4.tgz","fileCount":14,"unpackedSize":199919,"integrity":"sha512-p9199uCWgJwkMEfr89vHRbhiYEg+w0NmucqOGt/o3XuR1LeEVmY0uSsBPvrBzVG5dqjaGPSAkEEePnc0Wtpb/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDslAKGqEmz83o4nKR+UGmBIJAanLbTK0MabaI5rbID1wIhAKrcn/vPl2mK111Z888yrO7k5uxxc3kMitXGK7xeoBrq"}]},"maintainers":[{"name":"cnu4","email":"fangxw1004@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-codemirror-lite_1.0.4_1518839031339_0.5697963248169944"},"_hasShrinkwrap":false}},"readme":"# Vue-Codemirror-Lite\n\n[CodeMirror](http://codemirror.net/) Component For Vue.js (support 1.x and 2.x).\n\n[中文文档](https://github.com/cnu4/vue-codemirror-lite/blob/master/README_CN.md)\n\n## Lightweight\n\nBy default (to optimise bundle size) all modes and addons are not included. To enable them, see [Using Language Modes and Addons](#using-language-modes-and-addons).\n\n## Demo\n\nLive Demo: [https://cnu4.github.io/vue-codemirror-lite](https://cnu4.github.io/vue-codemirror-lite)\n\nTo run the demo locally, run\n\n`npm install && npm run dev`\n\nView demo in browser on [JSFiddle](https://jsfiddle.net/cnu4/r33vk618)\n\n## Installation\n\n### npm\n\n`npm install vue-codemirror-lite`\n\n```js\n// Install the plugin\nvar Vue = require('vue')\nvar VueCodeMirror = require('vue-codemirror-lite')\n\nVue.use(VueCodeMirror)\n\n// Or use as component (ES6)\nimport Vue from 'vue'\nimport { codemirror } from 'vue-codemirror-lite'\n\nexport default {\n  components: {\n    codemirror\n  }\n}\n```\n\n### browser\n\nInclude in the page\n\n`<script src=\"https://unpkg.com/vue-codemirror-lite/dist/vuecodemirror.min.js\"></script>`\n\ninstall into vue\n\n`Vue.use(VueCodeMirror)`\n\nor use as components\n\n`Vue.component('codemirror', VueCodeMirror.codemirror)`\n\nCodeMirror itself was built into `vuecodemirror.min.js`, get `CodeMirror` by\n\n`window.CodeMirror = VueCodeMirror.CodeMirror`\n\nView demo in browser on [JSFiddle](https://jsfiddle.net/cnu4/r33vk618)\n\n## Usage\n\n### Usage in Component\n\n```html\n\n<!-- simple -->\n<codemirror :value=\"code\"></codemirror>\n\n<!-- simple (with bindings in Vue1.x) -->\n<codemirror :value.sync=\"code\"></codemirror>\n\n<!-- simple (with bindings in Vue2.x) -->\n<codemirror v-model=\"code\"></codemirror>\n\n<!-- advanced -->\n<codemirror\n  :value=\"code\"\n  :options=\"editorOption\"\n  ref=\"myEditor\"\n  @change=\"yourCodeChangeMethod\">\n</codemirror>\n```\n\n```js\nexport default {\n  data () {\n    return {\n      code: 'const str = \"hello world\"'\n    }\n  },\n  computed: {\n    editor() {\n      // get current editor object\n      return this.$refs.myEditor.editor\n    }\n  },\n  mounted() {\n    // use editor object...\n    this.editor.focus()\n    console.log('this is current editor object', this.editor)\n  }\n}\n```\n\n## Properties\n\n - `value` `String` the editor value\n - `options` `Object (newValue)` options passed to the CodeMirror instance\n\nSee the [CodeMirror Configuration](http://codemirror.net/doc/manual.html#config) for the available options.\n\n## Using Language Modes and Addons\n\nSeveral [language modes](https://codemirror.net/mode/) are included with CodeMirror.\n\nBy default (to optimise bundle size) all modes and addons are not included. To enable:\n\n - install `vue-codemirror-lite` \n - require the language modes or addons after you require `vue-codemirror-lite` itself (If use browser version, you need to include necessary script file of mode and addons. View demo in browser on [JSFiddle](https://jsfiddle.net/cnu4/r33vk618))\n - set the mode option in the options object\n\n```html\n<template>\n  <codemirror :options=\"{\n    mode: 'javascript',\n    extraKeys: {'Ctrl-Space': 'autocomplete'}\n  }\"></codemirror>\n</template>\n\n<script>\n  import { codemirror } from 'vue-codemirror-lite'\n  require('codemirror/mode/javascript/javascript')\n  require('codemirror/mode/vue/vue')\n\n  require('codemirror/addon/hint/show-hint.js')\n  require('codemirror/addon/hint/show-hint.css')\n  require('codemirror/addon/hint/javascript-hint.js')\n\n  export default {\n    ...\n  }\n</script>\n```\n\nSee the demo source which implement JavaScript and vue syntax highlighting and JavaScript hint addon.\n\nSee the [CodeMirror Manual](http://codemirror.net/doc/manual.html) for the more modes and addons.\n\n\n## License\nMIT\n","maintainers":[{"name":"cnu4","email":"fangxw1004@qq.com"}],"time":{"modified":"2022-06-28T19:11:42.996Z","created":"2017-01-13T10:41:33.183Z","1.0.0":"2017-01-13T10:41:33.183Z","1.0.1":"2017-05-29T10:22:54.154Z","1.0.2":"2017-10-15T14:39:39.266Z","1.0.3":"2017-11-12T03:42:08.603Z","1.0.4":"2018-02-17T03:43:51.460Z"},"homepage":"https://github.com/cnu4/vue-codemirror-lite","keywords":["vue-codemirror-lite","vue codemirror","codemirror","vue"],"repository":{"type":"git","url":"git+https://github.com/cnu4/vue-codemirror-lite.git"},"author":{"name":"fangxw"},"bugs":{"url":"https://github.com/cnu4/vue-codemirror-lite/issues"},"license":"MIT","readmeFilename":"README.md"}