{"_id":"@egoist/react-to-vue","_rev":"3-667587eab86d319fa99e898ecec46f4f","name":"@egoist/react-to-vue","dist-tags":{"latest":"2.0.0"},"versions":{"1.1.0":{"name":"@egoist/react-to-vue","version":"1.1.0","description":"Turn a React component into a Vue component.","main":"dist/index.js","module":"dist/index.esm.js","scripts":{"test":"npm run lint","build":"bili src/index.js --format esm --format cjs","prepublishOnly":"npm run build","lint":"xo"},"publishConfig":{"access":"public"},"repository":{"url":"git+https://github.com/egoist/react-to-vue.git","type":"git"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","devDependencies":{"bili":"^4.8.0","eslint-config-prettier":"^3.3.0","eslint-config-rem":"^4.0.0","eslint-plugin-prettier":"^3.0.0","husky":"^1.0.0-rc.13","lint-staged":"^7.2.0","poi":"^12.7.0","prettier":"^1.15.2","react":"^16.8.6","react-dom":"^16.8.6","vue":"^2.6.10","xo":"^0.23.0"},"xo":{"extends":["rem","plugin:prettier/recommended"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["xo --fix","git add"],"*.{json,md}":["prettier --write","git add"]},"peerDependencies":{"react":"^16.8.6","react-dom":"^16.8.6"},"gitHead":"fc40b88ab0db7259da855e377deeee95cf7f12e1","bugs":{"url":"https://github.com/egoist/react-to-vue/issues"},"homepage":"https://github.com/egoist/react-to-vue#readme","_id":"@egoist/react-to-vue@1.1.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-vrEWYFGQ0FaSZ3NsCTWeUrL1Wvi+2clDkbCA4Sy1K8qYOE92zkZmSdPX4O0hfTKI0aT+BHdOquL4lwnJDBhlsg==","shasum":"0ff861cd212569fa335f745c97f8da20f40ba5ed","tarball":"https://registry.npmjs.org/@egoist/react-to-vue/-/react-to-vue-1.1.0.tgz","fileCount":5,"unpackedSize":5044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdIGNRCRA9TVsSAnZWagAAbW4P/AkKBXo2GFqzxfkJIZPl\nZiTX6f0RQ2ujxyxD51M79pVByUKCU7mM8xpUevNvHt1hFb5nuo+7oDc/eR/C\nYbicrl8lKY7PORF2bFPKu8mC36EduRS45YGyN4s0dXQIPc7YxVXnimhCIwDf\nZgsRjJZw12zwYqAyWq7GR4beP/SDTJhY17DiLG56CoKuKrGOZPUkaey+h2hD\n2ngD6tcRSLdGkLyna1EHfK9mGlO0XuaYaLOW7oLl00zNLqAjGksYvWU2gRqT\ng8COTR7+DvS8jQ5oK3ABXVCGq7VFCRX0W9Xak9MEJiM0kQuhXt0A9E5Ffehv\nb/k5soWKQ9Jj/TMo+q36HOlwP6shjX08OO9kfUtffhjE1U8IVPPebk/JdYwV\nJu7tXnTSJtfrM5bFu+tvVtKUQfxivIiDLUYmsB5+vkZ4amDsOqg9aXJgZ2jx\nKOEaoZG6xmNjK0S/OiruPdP1uGejBs/FqjTzl6yIOKfYvSzeP6MGKb84Bap7\neM78yRJwO6U/oiJPwuOcbX3NLSb2DZiRGp/oNw4T/D94LTr4pxXBpJfJZBGv\nX42uLsv8o12G514gjKBiwhc+UlvHdQzG5KWDdr2s54+W0S44pz5pGNO3hhNk\npR36cJ/wT/eM0LuVWxHeoKCNA5d0D7LFI0vfOkNsD2KLyV10s8NWajYyA7Qn\n64ik\r\n=bivh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGrMXIhOPkV5my0x0SQexfOg3UVEZdzvPNe3Z6io93ZVAiEA1U/vxLKlbqciiyEaSvI/QCgsZXwBQIR87aD404e1n+M="}]},"maintainers":[{"name":"egoist","email":"0x142857@gmail.com"}],"_npmUser":{"name":"egoist","email":"0x142857@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-to-vue_1.1.0_1562403664964_0.8143642194463763"},"_hasShrinkwrap":false},"1.1.1":{"name":"@egoist/react-to-vue","version":"1.1.1","description":"Turn a React component into a Vue component.","main":"dist/index.js","module":"dist/index.esm.js","scripts":{"test":"npm run lint","build":"bili src/index.js --format esm --format cjs","prepublishOnly":"npm run build","lint":"xo"},"publishConfig":{"access":"public"},"repository":{"url":"git+https://github.com/egoist/react-to-vue.git","type":"git"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","devDependencies":{"bili":"^4.8.0","eslint-config-prettier":"^3.3.0","eslint-config-rem":"^4.0.0","eslint-plugin-prettier":"^3.0.0","husky":"^1.0.0-rc.13","lint-staged":"^7.2.0","poi":"^12.7.0","prettier":"^1.15.2","react":"^16.8.6","react-dom":"^16.8.6","vue":"^2.6.10","xo":"^0.23.0"},"xo":{"extends":["rem","plugin:prettier/recommended"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["xo --fix","git add"],"*.{json,md}":["prettier --write","git add"]},"peerDependencies":{"react":"^16.8.6","react-dom":"^16.8.6"},"gitHead":"323c6b92e5892b4d023279c0201dfb55af3d661b","bugs":{"url":"https://github.com/egoist/react-to-vue/issues"},"homepage":"https://github.com/egoist/react-to-vue#readme","_id":"@egoist/react-to-vue@1.1.1","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-2ZEBxtOKVckGloM5+SaWqtvuBerIH5h+xFP2qDU6Va48MkU5aCkiuZVQhKgdlJYvEtEqxeQuRPtp6+/8ALkxgg==","shasum":"c65631f5a4b757d40b5674e00d2d011c31f9771c","tarball":"https://registry.npmjs.org/@egoist/react-to-vue/-/react-to-vue-1.1.1.tgz","fileCount":5,"unpackedSize":5052,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdIGQPCRA9TVsSAnZWagAArQcP/AqDXGLy18l+h+F2d6Nd\nbgVl3c3wt4rr1+AO3ZDiEbbsKiM06kS2LwDC/4WWquu1EJT1ZRmv4IEXLa2e\njjNimyKA6mXpB/LnN8siYTvEt2BOCZpTmXNEt+kqZAIKJpADHY2Id/WdFXCp\nMcP1xU5L/3lVO2MKbtoXH56xLXqy3X05cp1Ipnaxv/yZXkH6dPOckySZwPZZ\n6dz4wLzxo2VCC/s5aXtBY4Ep0Q/nFGHN7nvBCj9NnA7bmHjY9d/9qGrCgodV\npOnyGosv0Ecnx+8qD93B8nBLCQCUosJ7KgKAajGoUMmI/MndOhoTqzs4XXkP\n1xqlrEXm70zb2eW2EgYNO0pmzvVeekZfGiVkp0DPaE8PUrwnJtnwj2+JTMMy\ndvsfQrHyFTOojmKBZtglO/hhTX4GvE+sv89aViCvWm4SvsvWPflYyGUllLvQ\nTKLPkxUoH49RIYVdRMm0BKFPOUeQnaD1kRfoG7msOblFmzGLFS2hzdPzxgQK\nNrmmMf/DMxlb7uZIbWqOXGNnh1MLRaYEq6dtzyYzOUMzrAp3fg1hqkeUb5lL\nnb8lSiv2a1sol9Hs15r79Vq9CxnmNgRV7Yh+7nAiwH5e83ccES2CJz0wESRQ\nBNJJVVLqVIuy6tiP18CyVJVm6FgcRajiEWJqkVe9izZCeO1JHLIgNvkI0VRf\nFCnj\r\n=ekSA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9/JLOc9lRCNheAVd9mL9gajDrG0pxamr2G3foECK4YwIhAJcqB+VldSFsHj+W46uWBbWO/ztGMgVL3JRAEfhyo6Zl"}]},"maintainers":[{"name":"egoist","email":"0x142857@gmail.com"}],"_npmUser":{"name":"egoist","email":"0x142857@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-to-vue_1.1.1_1562403854787_0.21859865320723837"},"_hasShrinkwrap":false},"2.0.0":{"name":"@egoist/react-to-vue","version":"2.0.0","description":"Turn a React component into a Vue component.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"test":"echo lol","build":"tsup src/index.ts --format esm,cjs --dts","prepublishOnly":"npm run build","dev":"vite demo"},"publishConfig":{"access":"public"},"repository":{"url":"git+https://github.com/egoist/react-to-vue.git","type":"git"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","devDependencies":{"@types/react":"^17.0.3","@types/react-dom":"^17.0.3","prettier":"^2.2.1","react":"^17.0.2","react-dom":"^17.0.2","tsup":"^4.8.21","typescript":"^4.2.4","vite":"^2.1.5","vue":"^3.0.11"},"peerDependencies":{"react":"^17.0.2","react-dom":"^17.0.2","vue":"^3.0.11"},"gitHead":"7bf9738d4fa775defa333e4214f0e750889f3fec","bugs":{"url":"https://github.com/egoist/react-to-vue/issues"},"homepage":"https://github.com/egoist/react-to-vue#readme","_id":"@egoist/react-to-vue@2.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-5h0lMg7yFRHSnPkIsL9AWMK/OY0cZIkPJe6HhYrZm5NDuMFzEKG7G+jRPLjyf230Z2pcq8aMhMVqeuRS99MEwA==","shasum":"2e77ebe65b43b8df36a9b024ba5cdc6bf3982f15","tarball":"https://registry.npmjs.org/@egoist/react-to-vue/-/react-to-vue-2.0.0.tgz","fileCount":6,"unpackedSize":5464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbzfyCRA9TVsSAnZWagAAIdYQAIWr5covLwqGafTH/v+o\nPFhVvi8B4ncfl4ZydeA+bQ2X4DHPHfXGTR+mi3uTdqaKE9me9tFXVRJ1vM6J\ndQ5BcUdbSPcKIIfwxeB/qSfu/+GAk0rLHLCapodAV9wLRTTEKTHkILkK/dvM\niG1BOy/KwXPAHQEO2kJEkcXRqL8aUD3qEd8/34KmAjtIk2Sx0DX/mhogYoDZ\nJHIeo6AxcfYvwtCzhtJ1IPpyQv2CdFHJbaX2Z9cKGq37TtkWsqZP8t0TGoUR\n3StbVSu0mb3gnciPzEHKInA2N1MzrzGFgadUGCZ2uvp4e/QsHzlBI+h3VGh9\nM3BeMfwbUxT3XY1NW/YGGL3kNFv4JBpUorqBzJ0RbCwiZbIh0ZyrMBKkK90o\nhxHUyt4g1FDkiCkCUGI+daKC053vx6imwteb0MA5ZGSUi+RiEgWf0K+Vok5E\nYEhuENdz9VH50FpFKzfvblbxzxwcFrQZyGd4gmbVX6G+2ugINF8qVetEa/y1\nM3en0CoNZNGmDXenC9Vr/73HPHoOASRFawPgeJtMqf50Dtef05RQ+LLtaABM\nLIVRF55us3xl6kPF1i+DoIHOdXZjhk0uz15uvXSXWE5cr7Mk7eLhAeleX7kU\n/nx6BITgYXQx/yZKLEzcuu/eMCUTaf4WqzDwdfCpzG7/Fgz/lyBPOwqDnGpn\nKwH0\r\n=N9Ll\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEbH6TODLyR90LyOBjXyIP/zVRA5kwQjBcR+IIZ5TxL5AiAacOUuozFDSP30OHDt3QkIsFZ9EVv9n9j8znVlprQM8Q=="}]},"_npmUser":{"name":"egoist","email":"0x142857@gmail.com"},"directories":{},"maintainers":[{"name":"egoist","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-to-vue_2.0.0_1617901554503_0.047266136975747"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-06T09:01:04.760Z","1.1.0":"2019-07-06T09:01:05.118Z","modified":"2022-04-05T06:57:20.153Z","1.1.1":"2019-07-06T09:04:14.913Z","2.0.0":"2021-04-08T17:05:54.609Z"},"maintainers":[{"name":"egoist","email":"0x142857@gmail.com"}],"description":"Turn a React component into a Vue component.","homepage":"https://github.com/egoist/react-to-vue#readme","repository":{"url":"git+https://github.com/egoist/react-to-vue.git","type":"git"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"bugs":{"url":"https://github.com/egoist/react-to-vue/issues"},"license":"MIT","readme":"# react-to-vue\n\n[![NPM version](https://badgen.net/npm/v/@egoist/react-to-vue)](https://npmjs.com/package/@egoist/react-to-vue) [![NPM downloads](https://badgen.net/npm/dm/@egoist/react-to-vue)](https://npmjs.com/package/@egoist/react-to-vue)\n\n## Install\n\n```bash\nnpm i @egoist/react-to-vue\n```\n\n## Usage\n\n```js\nimport { createApp, h } from 'vue'\nimport React from 'react'\nimport toVue from '@egoist/react-to-vue'\n\nconst ReactComponent = () => {\n  const [count, setCount] = React.useState(0)\n  return <button onClick={() => setCount(count + 1)}>{count}</button>\n}\n\nconst VueComponent = toVue(ReactComponent)\n\ncreateApp({\n  render: () => h(VueComponent),\n}).mount('#app')\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\n**@egoist/react-to-vue** © [EGOIST](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>\nAuthored and maintained by EGOIST with help from contributors ([list](https://github.com/egoist/react-to-vue/contributors)).\n\n> [github.com/egoist](https://github.com/egoist) · GitHub [@EGOIST](https://github.com/egoist) · Twitter [@\\_egoistlily](https://twitter.com/_egoistlily)\n","readmeFilename":"README.md"}