{"_id":"babel-plugin-react-generate-property","_rev":"6-6cb6d97525cfa0f14b248590cc755a4a","name":"babel-plugin-react-generate-property","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"babel-plugin-react-generate-property","version":"1.0.0","description":"A plugin to automatically generate properties (for example data attributes) for all JSX open tags, using user specified convention","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/shawnxusy/babel-plugin-react-generate-property.git"},"keywords":["react","babel","styled","components","data","attributes","property"],"author":{"name":"Shawn Xu"},"license":"MIT","bugs":{"url":"https://github.com/shawnxusy/babel-plugin-react-generate-property/issues"},"homepage":"https://github.com/shawnxusy/babel-plugin-react-generate-property#readme","_id":"babel-plugin-react-generate-property@1.0.0","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-VARvUm3H2gRK3rkqe5VaXl/MRcUPs5OUVRDDYgOfkOWi1OBZinCxmAuW361/BcFBpYvwJkV/CpwBTKe3w1hZCg==","shasum":"b5223596c3e3d94c614c4034138b51c19b29190d","tarball":"https://registry.npmjs.org/babel-plugin-react-generate-property/-/babel-plugin-react-generate-property-1.0.0.tgz","fileCount":1,"unpackedSize":816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIi6ZCRA9TVsSAnZWagAAIVgQAIX2VSvFdP/4IRPsUb5q\nZEnnAus0EnBdaLIwuDs0i27XEYINJizkgYg+9YtwV+uCxXFS1h+f6oBe3h9q\n8C3GgVJ1laPI1u6gRaxsg9eqHaIbpChwSA1vTAnVsIAm/3zbXMmLe+kW2+Ig\nq0ffyeDGMj9uRSuKEL5l+yt1M4CYBJOTF7Ua9AsdoLizGCT7ZC9mXvWfBvFX\n0Y0h1UQF2guVf+z74Wdzw6E/JxNRFkFZxmSb2kthb4BDiBxVd9TNfN9F2gTq\nN2stsGqzlasSKGioo0jbZQ//0bVsDyR8MOkcsyeAAL6c1LN4Yq9h10s3D8VR\nvuPlbG6cSnfbXTSXNI2is6ZHTQrD4wtk3386IlyObapvtlRjpnSZm0ISBP4V\nrROvDTSXoczaT9VWjEAeSC7QN1oyuJS/VagBBSSFLtBbHgIcbAaQ+FJdlc/D\nkDjM17MMwfwI6UwdN8ZKKJXqQAuNhZyPk4l7vY+9Cg7ibV9ztkw1zrBoJutK\nvqQKUExNAAWaGrvH1ML0Dp0yRUeJxWI1y/WpmUBd52Zlb6ivmtkwZ3LQf3tb\nIj2CKXf56smWhENgDRb1hLgw4S0DpsLai5thpdvoF8MuPa7/koRR+w4NuLxc\n0yrpxbr9oMr3I01Ldk34gfW/LUxkX+qWFaRoGKueoTlCjZ+7enzUROVcc0SH\nnP7w\r\n=vzPk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMAwmVNHwZOoxILtiGkwYlYTCnY0xPnl5zlL3bztCnbQIhAIRd5Xhn/oBwwAFpmkbSnRu+0AE+hjcCdWQlB0f62EGl"}]},"maintainers":[{"name":"shawnxusy","email":"shawn.xusy@gmail.com"}],"_npmUser":{"name":"shawnxusy","email":"shawn.xusy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-react-generate-property_1.0.0_1579298457204_0.3037917921927322"},"_hasShrinkwrap":false},"1.0.1":{"name":"babel-plugin-react-generate-property","version":"1.0.1","description":"A plugin to automatically generate properties (for example data attributes) for all JSX open tags, using user specified convention","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/shawnxusy/babel-plugin-react-generate-property.git"},"keywords":["react","babel","styled","components","data","attributes","property"],"author":{"name":"Shawn Xu"},"license":"MIT","bugs":{"url":"https://github.com/shawnxusy/babel-plugin-react-generate-property/issues"},"homepage":"https://github.com/shawnxusy/babel-plugin-react-generate-property#readme","devDependencies":{"eslint":"^6.8.0","prettier":"^1.19.1"},"gitHead":"791ce33b42786f212d4bcfc9cdd62e17b4af12f2","_id":"babel-plugin-react-generate-property@1.0.1","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-HTDA0BT2VbOD6BMCBIVpBieLefL99RnuyQKrVIwFwJIvJWEQztyoViNoE03z8C3QVBHdV66Z6vqNrhA2E97BjA==","shasum":"f563f552a780e0f5c9e0c6f072a2322f6579e31d","tarball":"https://registry.npmjs.org/babel-plugin-react-generate-property/-/babel-plugin-react-generate-property-1.0.1.tgz","fileCount":9,"unpackedSize":6842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIj73CRA9TVsSAnZWagAAoC0QAJeW+qeISRq5glVTtKgY\nZWKEYDtqGm+G/hGT6tj4NcQxDKRiyQqFJIC52GOtDg/f/SP3k2eaNUCEi+kk\nhBP0gRh9kr0BAU0/sRajqmknBrd50XNrYXI+I4KBNoZIPjiZkZwCrZeeRiWf\n4gCRfwNNnUMmdGRs1a/cCg7afWPfvBmZPAAJZdTUmn4lRlwqMSUphAww+HSL\nIycEP7iqK9Jg3OrtLEbOozeqP/d0NC6FHGg3fShSJH+JQ4Evk47VJcXp+VDk\nBsDD/cT8w26xaTNXo2OQOA5a7Oz4P6Urc4Gb1NmPzVwhQO1k/FAjAtsagm7T\nB5Bkr6gIf17Pa8Ev3RVRm7u+K3/kkWfRL/i+0seNsxcBqXMCvTn7v8FVAOiZ\nuWIOE8U/1CZqkAjCPEOPBZuQatnd8QmITTmFjb+n6BceyfLw5JKqeDm3P2KM\nt+JAJB5iVyqT+7jKxgTRe+C57FBz7e7AhzqmH5YAd02jwc8m4R0/Kd7qemZh\nolX5+K92ZT5oh2zbHXA+Th/EGN5WXSbBg77Jj+WLVY9TsTKve4EpAdrXmrN8\ntI2SY1tCoJX/56Bqc2RgawO+ikSU4SeZxBiyOKBH80E62qwpPcXGeW1GBWX6\nt3I2t3RkdP2+g+EAxYxPR3nmR03ZR1WQmf5Qdf39ltFhCacforhD9NZQBIYi\nwb6a\r\n=dPus\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ4mSm2nA05rhdsIiGca+iQ6XFxWgbK8x93MHwHcCgIAIgawfkhbbQU9JTWyR4s86JIlsX/2q84NMtsaMKWB6wYSk="}]},"maintainers":[{"name":"shawnxusy","email":"shawn.xusy@gmail.com"}],"_npmUser":{"name":"shawnxusy","email":"shawn.xusy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-react-generate-property_1.0.1_1579302647408_0.98017224381367"},"_hasShrinkwrap":false},"1.0.2":{"name":"babel-plugin-react-generate-property","version":"1.0.2","description":"A plugin to automatically generate properties (for example data attributes) for all JSX open tags, using user specified convention","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/shawnxusy/babel-plugin-react-generate-property.git"},"keywords":["react","babel","styled","components","data","attributes","property"],"author":{"name":"Shawn Xu"},"license":"MIT","bugs":{"url":"https://github.com/shawnxusy/babel-plugin-react-generate-property/issues"},"homepage":"https://github.com/shawnxusy/babel-plugin-react-generate-property#readme","devDependencies":{"eslint":"^6.8.0","prettier":"^1.19.1"},"gitHead":"62e6e8f94a29f4fd6dcd045a508bfc3f0ed50515","_id":"babel-plugin-react-generate-property@1.0.2","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-3uH3aTD2NoT4oGb6GxTuGJ9QWpChjvDPLm030WXrzxIL/1XZz+xNKFCsuL5ICohLSWxoKKjTB6A/J4ijmpSrYQ==","shasum":"d7c3cb353bed9912f45d1176fafc7cba2591ccea","tarball":"https://registry.npmjs.org/babel-plugin-react-generate-property/-/babel-plugin-react-generate-property-1.0.2.tgz","fileCount":9,"unpackedSize":9434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIj8gCRA9TVsSAnZWagAAuyoQAIjv3n4AwVnbYCF9WYBV\nklrGGnU+JX/kpYnYS3mUhTzfca+LuhEaM60jPHRkfVjqNT/+s/aKycU9qelU\niVz0PJH678osW0nat9sRmRBPPzkYVoyriidVo0+XHNG1VqjxsS3WPUXxtxL+\njUO3vrZx6QUBKPctvdEEir1Htsq6i3kRz10sCw+rWEymq/vnsRB21ufQjC9a\neem7fEObjCJmSwWo3RI6WbdZypXkNmtS/fFpHo4UW9TiC7bPZCWJ95lbTcXw\nagxrDoVBuW8eXjrW6WGxCnaULfJwBeH7xL2bOfkeyLNN7reSxsFV39OHlIqB\nIGrpO9Vo+8SH538mWMx1dCZhQWuapRCstvojAcZMulDoccZNNMlbSPXm7QSo\nHNzturdTfQ83E14dkwYi44f27zMAyHKZdsIyG52AoaELYJX9xSzbeCsB30h1\njuDhMGkitd48225IZXHhWRFSw+Kzag88zvGwA3QkM11b1IUtEBLxLGZlqvR7\nNdi1382+guJQN0zEDrqEkCy4vHU4Fm7V+OCJViXHZCCgPDiObVYDhaMPie6s\nRPfBhbbkKfUE9txlw3qFedQLuezYJBY5J15CC2WC0fzBepTGxqFy1GPreRVZ\n3pLje0DMmn+qmJRT6fEY38+f7O407dGNrELkKafZQ4d5N58AZo8HDecQl1a6\n5T7Z\r\n=bCqP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6mEgJKbEibqEmkEh6irQb9hlMhG0Zj/6Pj7spkrE6wgIhANxKh8eji1LZ4nql6wZeTEtKUE2mZ+t260R9DHSJ885n"}]},"maintainers":[{"name":"shawnxusy","email":"shawn.xusy@gmail.com"}],"_npmUser":{"name":"shawnxusy","email":"shawn.xusy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-react-generate-property_1.0.2_1579302687845_0.4220281199717171"},"_hasShrinkwrap":false},"1.0.4":{"name":"babel-plugin-react-generate-property","version":"1.0.4","description":"A plugin to automatically generate properties (for example data attributes) for all JSX open tags, using user specified convention","main":"lib/index.js","directories":{"lib":"lib"},"scripts":{"build":"babel src -d lib","build:watch":"babel src -w -d lib","prepublishOnly":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/shawnxusy/babel-plugin-react-generate-property.git"},"keywords":["react","babel","styled","components","data","attributes","property"],"author":{"name":"Shawn Xu"},"license":"MIT","bugs":{"url":"https://github.com/shawnxusy/babel-plugin-react-generate-property/issues"},"homepage":"https://github.com/shawnxusy/babel-plugin-react-generate-property#readme","devDependencies":{"@babel/cli":"^7.8.3","@babel/core":"^7.8.3","@babel/preset-env":"^7.8.3","@babel/preset-react":"^7.8.3","eslint":"^6.8.0","prettier":"^1.19.1"},"gitHead":"284ddf0e9edc8f7f951ee37953b8bebd705e83e0","_id":"babel-plugin-react-generate-property@1.0.4","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-RGcN0xuyyZSMB/hZbP83AGemueB16RQFqPaeMRHvoyQ5FmgneYRj9fDA41p/yNK41WRHs9PHvHzs11NCIxiHhw==","shasum":"4cf23a9afaca8e9789c6f6c458b4c53fd515d097","tarball":"https://registry.npmjs.org/babel-plugin-react-generate-property/-/babel-plugin-react-generate-property-1.0.4.tgz","fileCount":10,"unpackedSize":12392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJfrpCRA9TVsSAnZWagAA/f8P/1iE2HJO460C2R17QH7J\nSTXNTAzMynm7BkMAiTki7MymQBdqG7wqLHW2kDMGQxOHAga0I96q7Nd4ucIp\nv5qh4WS4zOJg8q3kCm08ZKr4NtSiBdzicseSFaijzl8sPGtDE2Cz1oPKMfIC\nZpBdcfRrpCpREyKvfZQ0UopIAYUJTy9B5f/f1Fv8OOtiC36YJG/9v0TrVlbZ\n15cgdZmGDoGM7obHwQeUdlK7ZFViUKeTHTCQ8iNFocw4KvmGx3nayscHkxLc\ndwy/BeMx7FQhfuC0etvPHXA7FP6v/t0wsJkyrVwaebSKYGCtfOnXeEDif7zj\np6xIPd7tTMhmvO3tTukoC/zJ5emEWy8stDXYjPJFkg5CHihDMJ9kVJ6jAduM\nafW9a75/a/h/X8vU4zwqJfrxzsP77g9au5vMGdKMGKAaG/9XvHQFq3e/7Dbx\nyKzhgyCfJiKjU+BrdhvN9+2hFe3TJ930nqAwRjyn1rhZYkzINGHC33+mN0uA\nLp+o4SmyHLN9RPgTykhkDsBCRWkh001IqIdNlWTJpyICeCcKyd3xSC50nzN2\nE2DWuzOMuBVey4ULuD1lCl9HuU4URDwarHrHEFSrNHG7SHQzqaeezTDkHxiP\nSybq4zthbZChBD9iR9ftiYdUVPIeoGJCMfD/y8cDxfPcPLMvKARJjwDmrK2y\nGJLb\r\n=KsIQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGUaDr+Xrpf44W/UG1fM2s435QvpMHWy5wJeFb1M15B9AiB8TCutx/9VJ8tKavw1Ga1c1cbV3hUgQnBKJz7h2d5G+w=="}]},"maintainers":[{"name":"shawnxusy","email":"shawn.xusy@gmail.com"}],"_npmUser":{"name":"shawnxusy","email":"shawn.xusy@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-react-generate-property_1.0.4_1579547368541_0.8916196535033927"},"_hasShrinkwrap":false},"1.0.5":{"name":"babel-plugin-react-generate-property","version":"1.0.5","description":"A plugin to automatically generate properties (for example data attributes) for all JSX open tags, using user specified convention","main":"lib/index.js","directories":{"lib":"lib"},"scripts":{"build":"babel src -d lib","build:watch":"babel src -w -d lib","prepublishOnly":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/shawnxusy/babel-plugin-react-generate-property.git"},"keywords":["react","babel","styled","components","data","attributes","property"],"author":{"name":"Shawn Xu"},"license":"MIT","bugs":{"url":"https://github.com/shawnxusy/babel-plugin-react-generate-property/issues"},"homepage":"https://github.com/shawnxusy/babel-plugin-react-generate-property#readme","devDependencies":{"@babel/cli":"^7.8.3","@babel/core":"^7.8.3","@babel/preset-env":"^7.8.3","@babel/preset-react":"^7.8.3","eslint":"^6.8.0","prettier":"^1.19.1"},"gitHead":"2b042cb47fa6fd12154f8be92d176b081a871ad5","_id":"babel-plugin-react-generate-property@1.0.5","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-ghZkxSTIrdUfXeTI+J/MYfYthDB+NElYLEYUOaJjgErscBKBzI45ZYVo+9wn5wLrlCpLjaeQTEIAewZ7Sf+DmQ==","shasum":"2dced43215f2d70eef88a9d6d81b98a9876c762c","tarball":"https://registry.npmjs.org/babel-plugin-react-generate-property/-/babel-plugin-react-generate-property-1.0.5.tgz","fileCount":10,"unpackedSize":12992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJ1UoCRA9TVsSAnZWagAAwAIP/A2JTK6An6YX/9PwT5fY\npMn5cyVcy3T7vJHL6ioPQR88n1ruU7mMEOCmpargk0ukezib94gwUKABYopK\n+Ey/8Ce9b8A9uFRqeEccNsN8OWenE26qQ5BS4epqbkyhjmFfLG4+1O77hcfU\nCBe92BFQ3ElO3zemr9BTvH/I4HW2rdoebh0p0Bg9RjTh4IkH3aZ0uAekExx3\n/2VHITeTKgYdCIhv6KN23VsKcVX16/DS/lGXpTIo9SgMKKdh9omNwJ8DYKli\n2x1U8KMtCEryq8gW0hf03cj9JhcSHK4kifWt0PiZ4i2nsrzqC8HvpCeZb4sx\n0Pu6KXqzA1cvoYybiR1hLQ1Ak5Oplsw7QSBdYl30vc6A3EDnhE4C/kxrU1/U\nNt+w1IQgbfhwSkSiV7TBmoHBQUa4rK9Ke5/ptdfmHClQNauf1czSyWBMzObo\n9EPud0Nfpxm0lp/Qugj6lyVks6oJTeZ6xe3vZ05uI6XMA2y/AmY4wYRM6kNT\n2WtJpH4owNeqeOIPTkcplMxhtoosp9h4RPK9vp5yL4BUWjiQGRDOCz0G8pkH\nJJafbFLf48wVNQrUSRHbrszULOJhONjZ0ZwS3GdjAmT2g/iS3hWYafAnK9iM\nYIoA4DgIvd46C1xpzVqfRWL9Y7fQWx7p9u46qtP90FH84G2zWHuw2S+H/U8z\nOzV9\r\n=QtC8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiU0D1yYIpqeSgXXuZjzZhjT7dLW8Qbz7OZGU6eLkRZwIgQ6QBtTC6l5+fFq2iLEZ5SAT6C/uCJodVMrgeiooaZNc="}]},"maintainers":[{"name":"shawnxusy","email":"shawn.xusy@gmail.com"}],"_npmUser":{"name":"shawnxusy","email":"shawn.xusy@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-react-generate-property_1.0.5_1579636008001_0.4450898199690416"},"_hasShrinkwrap":false},"1.1.2":{"name":"babel-plugin-react-generate-property","version":"1.1.2","description":"A plugin to automatically generate properties (for example data attributes) for all JSX open tags, using user specified convention","main":"lib/index.js","directories":{"lib":"lib"},"scripts":{"build":"babel src -d lib","build:watch":"babel src -w -d lib","prepublishOnly":"npm run build","test":"mocha","tests":"mocha -w"},"repository":{"type":"git","url":"git+https://github.com/shawnxusy/babel-plugin-react-generate-property.git"},"keywords":["react","babel","styled","components","data","attributes","property"],"author":{"name":"Shawn Xu"},"license":"MIT","bugs":{"url":"https://github.com/shawnxusy/babel-plugin-react-generate-property/issues"},"homepage":"https://github.com/shawnxusy/babel-plugin-react-generate-property#readme","devDependencies":{"@babel/cli":"^7.8.3","@babel/core":"^7.8.3","@babel/preset-env":"^7.8.3","@babel/preset-react":"^7.8.3","eslint":"^6.8.0","mocha":"^9.1.3","prettier":"^2.4.1","react":"^17.0.2","react-dom":"^17.0.2"},"gitHead":"d5d5e4820993b67dbf83a39116c29c345a210f8b","_id":"babel-plugin-react-generate-property@1.1.2","_nodeVersion":"16.8.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Wm1OfCfv7juukTZEZHNSYIMxeQEcIhnQQeGlFbML1BesMGZValuCCnEaayg6KyAlT9Y07I5Tz6XmH9YirUfkFQ==","shasum":"2f861e2661795a242b80284af32573bb2c6cdf3b","tarball":"https://registry.npmjs.org/babel-plugin-react-generate-property/-/babel-plugin-react-generate-property-1.1.2.tgz","fileCount":10,"unpackedSize":36865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtuf1CRA9TVsSAnZWagAAyx0P/iUrKiAPLrztO5bnzh8b\nQT9B/yu8Cx82IK/CjXGv9O8vu7kUaz4hEVFg/ca+r9hIPv86EG1JyS06rMqA\nSZ1yvzAY/LWB5+qL9W634R/QAWxeXzkJ1+NmDp7iWUN6j2EQ/iVAixw33YnH\nLSKYKYiwJnNxCaymdPhIt/UOUfneUFVuQgpRgfzBX7WGT1qQVohlpIkQIPc+\npZmCT81UC92bz/abxinE81B9kORTrCA4/3JpNBxYOUCwZ06Nom+Ny6khDEti\n9VBTyWh00ZCnpnEc1rm3g+QXxLjxwjApO0/7s7oz35ROVk9dChwBvrHqfJ7P\nWP9wTxx0bqk8hyhCs6kfIVUF1VGoYhXFFBx9wB4hKWZMTP0Pc2LeiSF/0w06\nv9dOWf4CXTEWwBXSz91lS+esAzWL2/nKl2Oz1azlxjKlx/kaa8saG+WzycG9\n3UfGjPbbU9/RjJg7YNdNmwIcO+Qv15HUd3U29vBETWWEU7NaKSpGR4xwhruH\nIQf3zCSrBggWF9fub/eUdoUveXAMaHvsDMsv8pWNXbjIWKMzcEzj3nGD2wgy\npZ2yFaen62TzvWDFZVAsmxe3t6yLRayMgRMil881jUHnOUhJVVAoiq5GdFrM\nYgG/VhsRewEixXb3e7FLW3VaSOwlk1shBb5nN0Sau4aELTQsNsYDkhHWuiGh\n6F9t\r\n=XjIR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG22bJGe5/onbhVtQu0q6OSF9eHKIayDdUrIN6eMV6d/AiEApMpNczlDNpboeU/pT/Bdu0KR1b1H+EaIT+Q5N5CXvuM="}]},"_npmUser":{"name":"shawnxusy","email":"shawn.xusy@gmail.com"},"maintainers":[{"name":"shawnxusy","email":"shawn.xusy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-react-generate-property_1.1.2_1639376885573_0.22320545813334847"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-17T22:00:57.203Z","1.0.0":"2020-01-17T22:00:57.350Z","modified":"2022-04-11T16:41:23.556Z","1.0.1":"2020-01-17T23:10:47.523Z","1.0.2":"2020-01-17T23:11:27.990Z","1.0.4":"2020-01-20T19:09:28.694Z","1.0.5":"2020-01-21T19:46:48.149Z","1.1.2":"2021-12-13T06:28:05.715Z"},"maintainers":[{"name":"shawnxusy","email":"shawn.xusy@gmail.com"}],"description":"A plugin to automatically generate properties (for example data attributes) for all JSX open tags, using user specified convention","homepage":"https://github.com/shawnxusy/babel-plugin-react-generate-property#readme","keywords":["react","babel","styled","components","data","attributes","property"],"repository":{"type":"git","url":"git+https://github.com/shawnxusy/babel-plugin-react-generate-property.git"},"author":{"name":"Shawn Xu"},"bugs":{"url":"https://github.com/shawnxusy/babel-plugin-react-generate-property/issues"},"license":"MIT","readme":"# babel-plugin-react-generate-property\n\n## Overview \nA plugin to automatically generate and add properties (for example data attributes) for all JSX open tags, especially styled components (Emotion, Styled Components, etc).\nThis is useful for a couple places:\n- End to End test, if you don't want to manually add data attributes or classnames to all tags.\n- Third party usage tracking tools like Heap, where they can pick up data attributes.\n\n## Before\n```jsx\n// src/client/Components/Common/Header.jsx\n<View>\n  <Logo>...</Logo>\n  <Content>...</Content>\n</View>\n\nconst View = styled('div')(...);\nconst Logo = styled('div')(...);\nconst Content = styled('div')(...);\n```\n\n## Generated\n```jsx\n// src/client/Components/Common/Header.jsx\n// using options (customProperty: 'data-test', dirLevel: 1)\n<View data-test=\"Common_Header_View\">\n  <Logo data-test=\"Common_Header_Logo\">...</Logo>\n  <Content data-test=\"Common_Header_Content\">...</Content>\n</View>\n\nconst View = styled('div')(...);\nconst Logo = styled('div')(...);\nconst Content = styled('div')(...);\n```\n\n## Installation\nAvailable on npm as [babel-plugin-react-generate-property](https://www.npmjs.com/package/babel-plugin-react-generate-property).\n\nTo install the latest stable version with Yarn:\n\n```sh\n$ yarn add --dev babel-plugin-react-generate-property\n```\n\n...or with npm:\n\n```sh\n$ npm install --save-dev babel-plugin-react-generate-property\n```\n\n## Usage (via .babelrc)\n```json\n// .babelrc\n\n{\n  \"env\": {\n    \"development\": {\n      \"plugins\": [\"babel-plugin-react-generate-property\"]\n    }\n  }\n}\n```\n\n## Custom options\n```json\n// .babelrc\n{\n  \"env\": {\n    \"development\": {\n      \"plugins\": [\n        [\n          \"babel-plugin-react-generate-property\", {\n            \"customProperty\": \"data-dev\",\n            \"dirLevel\": 2,\n            \"slashChar\": \"\\\",\n            \"addModuleClassNames\": true,\n            \"prefix\": \"myPrefix\",\n            \"firstChildOnly\": false\n          }\n        ]\n      ]\n    }\n  }\n}\n```\n**customProperty**: Use this to configure which property to add to open tags. By default it would be \"data-id\".\n\n**customSeparator**: Use this to configure the separator used between generated property value, for example, setting it to \"-\" would yield something like `<div data-id=\"Common-Header-div-wrapper\" />`. By default it would be \"_\".\n\n**dirLevel**: How many levels of the file directory do you want to use for the property value. If you use more, the generated value is more likely to be unique, but you will also incur slightly larger builds. Default to 1 (append only the directory where the target file is located in). \n\nYou may also set dirLevel to a negative value, in which case, the plugin will strip the first `-dirLevel` directory values from the beginning, instead of keeping values from the end.\n\n<details>\n<summary>Negative dirLevel example</summary>\n\nLet's say the file to be processed has a relative path of `/src/client/pages/common/tables/MyCustomTable.jsx`.\n\nAnd the file has content of:\n```jsx\n<View>\n  ...\n</View>\n```\n\nNow if we pass in `dirLevel: 2`, the generated data id would look like:\n```jsx\n<View data-id=\"common_tables_MyCustomTable_View\">\n  ...\n</View>\n```\n\nBut if `dirLevel: -2` is passed, the plugin would strip relative path from the beginning, and generate something like:\n```jsx\n<View data-id=\"client_pages_common_tables_MyCustomTable_View\">\n  ...\n</View>\n```\n\nNote that a dirLevel value of `-2` essentially stripped off both the rootDir, and then the `src/` part of the relative path.\n\n</details>\n\n**omitFileName**  (default: `false`): In case you want to omit filename in data-attr\n\n**slashChar**: Default to \"/\", if you are on Windows, use \"\\\".\n\n**addModuleClassNames**  (default: `false`) : In case you use css-modules and want to add className to data-attribute:\n\n#### Before\n```jsx\n// src/client/Components/Common/Header.jsx\n<View>\n  <div className={s.wrapper}>...</div>\n</View>\n```\n\n#### Generated\n```jsx\n// using option (addModuleClassNames: true)\n<View data-test=\"Common_Header_View\">\n  <div className={s.wrapper} data-test=\"Common_Header_div_wrapper\">...</div>\n</View>\n```\n\nThis does not work for basic string classNames\n\n**prefix**: Add custom prefix to data-attr\n\n**ignoreNodeNames**: do not add nodeName to data-attr (default: `false`) \n\n**match**: Accepts RegExp matching filepath and filename. Attrs will be added to matched components only. Matched regex string will be added as prefix. Only suitable for js-forms of babel config.\n\n**firstChildOnly**: Adds test attrs only on the root DOM node of every component  (default: `false`) \n\n\n<details>\n<summary>firstChildOnly feature details</summary>\n\nIn general it should work as follows:\n\n```jsx\nconst A = (props) => <main>{props.children}</main>\nconst B = (props) => <figure /><div>{props.children}<span/></div>\n\n<A><B>Hello</B></A>\n```\n\nwill be transformed into\n\n```html\n<main data-id=\"prefix_main\">\n  <figure data-id=\"prefix_figure\"></figure>\n  <div>Hello<span></span></div>\n</main>\n```\nThe problem behind this feature is: \n\n- we want to add automated data-attrs and use them in stage environment \n- but stage and production builds use the same docker-image, and there is valid CI logic behind that\n- we can detect staging env in runtime, but we can not do so while building\n- so we are stuck to keeping attributes in production\n- at least we want to keep the gentle minimum for QA, 1 attr per component is enough\n\nComponents can be defined in this ways:\n\n```jsx\nconst Foo = (props) => <main><div>{whatever}<div/><etc /></main>\n```\n\nIn such case `<main>` will be marked, child DOM nodes will not, until next React component will be met\n\n\n```jsx\nconst Foo = (props) => <Wrapper><div>{whatever}</div><etc /></Wrapper>\n```\n\nIn such case `<div>` will be marked, next DOM nodes in the wrapper will not (gentle minimum)\n\n```jsx\nconst Foo = (props) => <><div>{whatever}</div><etc /></>\n```\n\nIn such case `<div>` should be marked by design, next DOM nodes in the Fragment should not. **Actual behaviour with Fragments is unstable for now, not working as intended in some cases.**\n\n\n</details>\n\n\n## Via CLI\n\n```sh\nbabel --plugins babel-plugin-react-generate-property script.js\n```\n\n## Via Node API\n\nwithout options:\n\n```js\nrequire('@babel/core').transformSync('code', {\n  plugins: [require('babel-plugin-react-generate-property')],\n});\n```\n\nwith options:\n\n```js\nrequire('babel-core').transformSync('code', {\n  plugins: [\n    [\n      require('babel-plugin-react-generate-property'),\n      { customProperty: 'data-test' }\n    ]\n  ],\n});\n```\n\n## Contributing\nThis library gets reference and inspiration from https://github.com/alanbsmith/babel-plugin-react-add-property/blob/master/README.md, all requests and comments are welcome.\n\n## License\n\n[MIT][license]\n","readmeFilename":"README.md"}