{"name":"@vue/babel-sugar-v-model","version":"1.3.0","description":"Babel syntactic sugar for v-model support in Vue JSX","main":"dist/plugin.js","repository":{"type":"git","url":"https://github.com/vuejs/jsx/tree/master/packages/babel-sugar-v-model"},"author":{"name":"Nick Messing","email":"dot.nick.dot.messing@gmail.com"},"license":"MIT","private":false,"publishConfig":{"access":"public"},"scripts":{"pretest:snapshot":"yarn build:test","test:snapshot":"nyc --reporter=html --reporter=text-summary ava -v test/snapshot.js","pretest:functional":"yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js,./node_modules/@vue/babel-plugin-transform-vue-jsx/dist/plugin.js,@babel/plugin-transform-arrow-functions --out-file test/functional-compiled.js","test:functional":"ava -v test/functional-compiled.js","build":"rollup -c","build:test":"rollup -c rollup.config.testing.js","test":"rm -rf coverage* && yarn test:snapshot && mv coverage coverage-snapshot && yarn test:functional && mv coverage coverage-functional","prepublish":"yarn build"},"devDependencies":{"@babel/cli":"^7.2.0","@babel/core":"^7.2.0","@babel/plugin-transform-arrow-functions":"^7.12.1","@babel/preset-env":"^7.2.0","@vue/test-utils":"^1.0.0-beta.26","ava":"^0.25.0","jsdom":"^13.0.0","jsdom-global":"^3.0.2","nyc":"^13.1.0","rollup":"^0.67.4","rollup-plugin-babel":"4.0.3","rollup-plugin-istanbul":"^2.0.1","rollup-plugin-uglify-es":"^0.0.1","vue":"^2.5.17","vue-template-compiler":"^2.5.17"},"dependencies":{"@babel/plugin-syntax-jsx":"^7.2.0","@vue/babel-helper-vue-jsx-merge-props":"^1.2.1","@vue/babel-plugin-transform-vue-jsx":"^1.2.1","camelcase":"^5.0.0","html-tags":"^2.0.0","svg-tags":"^1.0.0"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"nyc":{"exclude":["dist","test"]},"gitHead":"f82f6182d294632a2cbddaacdff0a506c09e4ddc","_id":"@vue/babel-sugar-v-model@1.3.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/3.20.2/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-zcsabmdX48JmxTObn3xmrvvdbEy8oo63DphVyA3WRYGp4SEvJRpu/IvZCVPl/dXLuob2xO/QRuncqPgHvZPzpA==","shasum":"e4da7ae27a74c473b1abba060260ecaa8cb6e46b","tarball":"http://registry-npm.ywwl.com/@vue/babel-sugar-v-model/download/@vue/babel-sugar-v-model-1.3.0.tgz","fileCount":3,"unpackedSize":12261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCM7wUyoHwM7d23+7EWwecaWMMMyYBO3C+Im7+3DwNEAgIgFla/fHCe0hFYrgBVmmACDJPSnCxb70OcXjRNIvUt4Tg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixTuOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWIw/9GvhzhPDz0Ej6qiUBAznl+Irb2JZKj8ObNvJBk5bnFQ/dG5g3\r\nURutg7/MISN1cs93Hw/VJDomZoYI6dyr+ffXpvhSoYcM2U7ix1P7IkUdsyDv\r\n+1uPTveUsGtndppSWzhL+a6oH9vWl5F+6kNVS6+QbKUIMKNiazfte2p8tCDG\r\ndZFjC+XLTPm1qvh8bENa7ca1WEL9p98vnAD7N4RA/EJ3gIDrDRQYiAGYdVxJ\r\ne+xgXSUMv6mlI22DaPhujBt+IzA6AIUe7xWmycyxoqXoGmOn8Bpw3razg17g\r\nl06g1HUh3V26SpHMKZfRJks8CSiivi4gAbWG9xUJ90V82LM3TaP4Gf7kSUJF\r\nDmDItH7E/Ng9rjbk1PZXLvqhAF8zEfxBbyMP8GZpKZ60vCtlUo6m4bwK6q2j\r\nLToxMP2nW7ZHUPd3UfX9xnOTnScqQ0KAh3HSubu33VJJeFp1fieg4dzVZ5V0\r\nhANhMcd2Rpo2kz/ZBXAJXTdqMujHI5/FO7fDWMFMX7OwbbdFVDZaF/Z4rIZm\r\nmM1q0HljmP5ihvB/Eox+h7ahaU3LuzxI4Z05ybeYe8rTtce1w+kyOoXGJjGE\r\nr37iZeXG0P5XACyKctpuX6in8CD1HUolYGoKaDu71DG1EMT6EsS0N77uA0l6\r\nEh4sjI1WKyjNCo++o25E6iijFUvBhsRAFMM=\r\n=Dba4\r\n-----END PGP SIGNATURE-----\r\n","size":3679,"noattachment":false,"key":"/@vue/babel-sugar-v-model/-/@vue/babel-sugar-v-model-1.3.0.tgz"},"_npmUser":{"name":"soda","email":"haoqunjiang+npm@gmail.com"},"directories":{},"maintainers":[{"name":"nickmessing","email":"dot.nick.dot.messing@gmail.com"},{"name":"soda","email":"haoqunjiang+npm@gmail.com"},{"name":"yyx990803","email":"yyx990803@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-sugar-v-model_1.3.0_1657093006401_0.6916796331700041"},"_hasShrinkwrap":false,"readme":"## @vue/babel-sugar-v-model\n\nSyntactic sugar for v-model in JSX.\n\n### Babel Compatibility Notes\n\n- This repo is only compatible with Babel 7.x, for 6.x please use [vuejs/babel-plugin-transform-vue-jsx](https://github.com/vuejs/babel-plugin-transform-vue-jsx)\n\n### Usage\n\nInstall the dependencies:\n\n```sh\n# for yarn:\nyarn add @vue/babel-sugar-v-model\n# for npm:\nnpm install @vue/babel-sugar-v-model --save\n```\n\nIn your `.babelrc`:\n\n```json\n{\n  \"plugins\": [\"@vue/babel-sugar-v-model\"]\n}\n```\n\nHowever it is recommended to use the [configurable preset](../babel-preset-jsx/README.md) instead.\n\n### Details\n\nThis plugin adds v-model to the JSX and tries to mirror the same behaviour as in vue-template-compiler, with a few differences:\n\n1.  You should use underscore (`_`) instead of dot (`.`) for modifiers (`vModel_trim={this.test}`)\n2.  It is recommended to use camelCase version of it (`vModel`) in JSX, but you can use kebab-case too (`v-model`).\n\n```js\nexport default {\n  data: () => ({\n    test: 'Hello World',\n  }),\n  render(h) {\n    return (\n      <div>\n        <input type=\"text\" vModel_trim={this.test} />\n        {this.test}\n      </div>\n    )\n  },\n}\n```\n","publish_time":1657093006560,"_cnpm_publish_time":1657093006560,"dist-tags":{"latest":"1.4.0"}}