{"name":"babel-plugin-jsx-v-model","version":"2.0.1","description":"JSX v-model transform","main":"index.js","scripts":{"test":"ava","coverage":"nyc --reporter=lcov npm test"},"repository":{"type":"git","url":"git+https://github.com/nickmessing/babel-plugin-jsx-v-model.git"},"keywords":["Vue","jsx","v-model"],"author":{"name":"Nicolai Moraru","email":"dot.nick.dot.messing@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nickmessing/babel-plugin-jsx-v-model/issues"},"homepage":"https://github.com/nickmessing/babel-plugin-jsx-v-model#readme","dependencies":{"babel-plugin-syntax-jsx":"^6.18.0","html-tags":"^2.0.0","svg-tags":"^1.0.0"},"devDependencies":{"ava":"^0.21.0","babel-core":"^6.25.0","nyc":"^11.0.3"},"gitHead":"b67beeb7a79076b8142e01db52e6b986c1d2192d","_id":"babel-plugin-jsx-v-model@2.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"nickmessing","email":"dot.nick.dot.messing@gmail.com"},"dist":{"integrity":"sha512-Jm5h18Ay2qkJ2Ixpaqfw/CTEIyDJJ5ZAxFDNNiAL9pl9aeaNDKnwui4sEkMrowvA4m906Mvelgbp0uVhL11NdQ==","shasum":"c7c9a124e8975b03235571c4541c39c6c10e1a09","tarball":"http://registry-npm.ywwl.com/babel-plugin-jsx-v-model/download/babel-plugin-jsx-v-model-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEfMDgUzMnY5po8nMhvhptA+VzEWx4GBbds076YeqdPeAiAi704Nv6YrFJpVXAMPKONwvqHy7ZV7cJtRQPCF/Ynidg=="}],"size":9550,"noattachment":false,"key":"/babel-plugin-jsx-v-model/-/babel-plugin-jsx-v-model-2.0.1.tgz"},"maintainers":[{"name":"nickmessing","email":"dot.nick.dot.messing@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-jsx-v-model-2.0.1.tgz_1503025021480_0.07048238953575492"},"directories":{},"readme":"[![Build Status](https://travis-ci.org/nickmessing/babel-plugin-jsx-v-model.svg?branch=master)](https://travis-ci.org/nickmessing/babel-plugin-jsx-v-model)\n\n## JSX v-model for Vue JSX\n\nThis babel plugin adds some syntactic sugar to JSX.\n\n### Usage:\n\n```bash\nnpm i babel-plugin-jsx-v-model -D\n```\n\nThen add `jsx-v-model` to your `.babelrc` file under `plugins`\n\nexample .babelrc:\n```json\n{\n  \"presets\": [\"es2015\"],\n  \"plugins\": [\"jsx-v-model\", \"transform-vue-jsx\"]\n}\n```\n\ncode:\n```js\nVue.component('hello-world', {\n  data: () => ({\n    text: 'Hello World!'\n  }),\n  render () {\n    return (\n      <div>\n        <input type=\"text\" v-model={this.text} />\n        {this.text}\n      </div>\n    )\n  }\n})\n```\n\nBehaviour is similar to vue template's [v-model](https://vuejs.org/v2/api/#v-model).\n","publish_time":1503025021603,"_cnpm_publish_time":1503025021603,"dist-tags":{"latest":"2.0.3"}}