{"_id":"simplified-jsx-to-json","_rev":"2-e0d8a5e8b158bdb6749ede128657a466","name":"simplified-jsx-to-json","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"simplified-jsx-to-json","version":"0.1.0","description":"Converts basic JSX code into a JSON representation, which can be used by React.createElement","keywords":["jsx","convert","json","createElement","react","ast"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/gglnx/simplified-jsx-to-json.git"},"author":{"name":"Dennis Morhardt","email":"info@dennismorhardt.de","url":"https://dennismorhardt.de"},"license":"MIT","engines":{"node":">=8"},"scripts":{"test":"ava && tsd"},"dependencies":{"acorn":"^7.1.1","acorn-jsx":"^5.2.0","html-tag-names":"^1.1.5","is-string":"^1.0.5","style-to-object":"^0.3.0","svg-tag-names":"^2.0.1"},"devDependencies":{"ava":"^3.5.1","tsd":"^0.11.0"},"gitHead":"9dc07655e21a73a7c7a6c47d118c3610a6b7e04d","bugs":{"url":"https://github.com/gglnx/simplified-jsx-to-json/issues"},"homepage":"https://github.com/gglnx/simplified-jsx-to-json#readme","_id":"simplified-jsx-to-json@0.1.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-3bZyn0alS292ltfVqnM4pqaYRHVw6sTeVA9Zzs5LaBGVOfNSEatYo8R+yKO3B6/Fq7SV8Th4wXjoFZ9/TYDwvA==","shasum":"bb53de1c014a04a039d9e1f46e1fa0b5d77e8627","tarball":"https://registry.npmjs.org/simplified-jsx-to-json/-/simplified-jsx-to-json-0.1.0.tgz","fileCount":6,"unpackedSize":20148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJef3w4CRA9TVsSAnZWagAAt4AP/2cEdqaxes+D6hwsWKzn\neHTjhW8Zh0J1MIu/iDRaX7Jik+Ah8qD0xPNVqUn5+IohGjAnt8ZNgx/NSzrw\nILoELVkTVJ5ncq76lMr2SrzzktvnrAYdBYRLyR/1ZyA5gp/rDqxZ9ueONDn4\nPFuJtKufsVK+D01Z4m+A/8P08AHy/TjkKmwt0wGXabFn4nZmypnnUbX5M/NL\nNo7NXTgLLGFlfyT3WkoyeObafPgTV6RUt5hbv4KEmtysjVD765f1s3DnhFqs\n7KQ3xR0t3MEeZAHmq+5q3xhkNslQfLES1YIez4GzdOZy5Wy8Q+ut9ATOZYhL\nSNjdAnCXJN7sXib/dSxfwi/1OFuvhwtiEZed/EM1tshyBRSHwFAt7HMkGI9H\nsPXHx7uYiDIE/ysD0c6XXBbjvfUzjJJXDI2xifWjqcaQqjrfz5ot8d3BU8G2\nRuJLCDz7fQ4F7g23e7kksHsWpyk+jCpRn9uIYV+x5yaBZ784cRV8RpbWzXFt\nHggdKFmIOR7V7SKVVHkY/z3FJmsmlGlYy7R1TrgYgG4qxPWn7CnhICiibZjo\nnOokMwEH6E4+4502Pmn1g0dge7Nj2sa3c+h/E2hcY6WgGE9bE8JI3hI5qV9/\nkHZkqvLwg3AGQeA/dwo3CekRK9D/dhQruWPvpGgOUeKnAHBCN8jZgsBMZ1PQ\nHsqy\r\n=jSXw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID0KGX5pRGi9sBBnSydRYZoZ2NrDUJtYp144W1ng3ufDAiAuikpcb04cyrIJTyV2s+Lv08HgT0M841sQyjDziz3CSw=="}]},"maintainers":[{"name":"gglnx","email":"info@dennismorhardt.de"}],"_npmUser":{"name":"gglnx","email":"info@dennismorhardt.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simplified-jsx-to-json_0.1.0_1585413176114_0.45724038116239774"},"_hasShrinkwrap":false},"0.2.0":{"name":"simplified-jsx-to-json","version":"0.2.0","description":"Converts basic JSX code into a JSON representation, which can be used by React.createElement","keywords":["jsx","convert","json","createElement","react","ast"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/gglnx/simplified-jsx-to-json.git"},"author":{"name":"Dennis Morhardt","email":"info@dennismorhardt.de","url":"https://dennismorhardt.de"},"license":"MIT","engines":{"node":">=8"},"scripts":{"test":"ava && tsd"},"dependencies":{"acorn":"^7.1.1","acorn-jsx":"^5.2.0","html-tag-names":"^1.1.5","is-string":"^1.0.5","style-to-object":"^0.3.0","svg-tag-names":"^2.0.1"},"devDependencies":{"ava":"^3.5.1","tsd":"^0.11.0"},"gitHead":"20a696c9a48bdff44fe799aeb53de485cd9a47fe","bugs":{"url":"https://github.com/gglnx/simplified-jsx-to-json/issues"},"homepage":"https://github.com/gglnx/simplified-jsx-to-json#readme","_id":"simplified-jsx-to-json@0.2.0","_nodeVersion":"13.8.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-JbQWyuXgmykaCC837uWsn7g7nccmVawUitu6tZYN8LPbe4QdAInDH8inNQAH/47iqBs6L9f9iFk1y4me2XkPnQ==","shasum":"b76aa337bf2ee91e4f3e346e6280c4713059bc56","tarball":"https://registry.npmjs.org/simplified-jsx-to-json/-/simplified-jsx-to-json-0.2.0.tgz","fileCount":6,"unpackedSize":24399,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenMGoCRA9TVsSAnZWagAAWjUQAJVhU6uAE+J6VusMptZH\nCEJcUfl8rjiJnWfBsJC9m2kLBbxCUmMSxAUHMfidvOF+wBXJvLpOYjdrqA0C\nYBz31TWEproF8sSNqYYvdmqNDrHeDnwJNSeyq1mo0c5Juvfks/LAl22IRlwl\nlxNK2SRvJdcYT6xSgKZOAqqnLbVlHvXe6QaHZAXsy8W4BBXmsYSWTEq1Hpd/\neUrhWAl6QbytDCVatoeADJyF0Sm/4E4R8BB7UI7PMi3nBKeId8c7OCwkWFUx\nl997UFCbUq7rtX2RJn4fOf32lJWY6mpNpBYLdxrg0yxS53ENGWpC4nOZVUv6\nSSBzQwFSUD/tq/uN3s3nKPMw5/Kck7HA1Vfz5JkKBQu+1lFaLZwTjdq6yiSJ\nCCQIfb9IBRCYTdKOeV9+yfRddZnID2CpKdHKZF4PL/fDGyBVmUalNIh3xie6\nDw6FKhvWSYXsJnJB+UyeBJvTSDa0Sr1Wricnzf4AzW9CYYRQ8Qyx99wAW6Qd\nDbUJV8TlZZIXQ+KFEvAAjlRBx+PFqb9CoozJm5kmSYOHZ7X79fLxbT1TDomL\npeSM7b8BPbl+VITNsrattZfgfukEyyqbUzdvLHHbQ+MFobJ/1KjPMvbLLoho\n9NhKVtdL3s+dvtfPg8y/Yw9U7rSOkSO1WxPXzUXsX083hCDm99KqyWg86YRi\nRfIQ\r\n=xBzZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFkab8SMIy2DXQ6/wUWUALtGrP2jIDYsDw4vZqmKP91AIgdBmGXHJw5zJDo1h8/x4hIMGYSuTE4OkCzXVPwAbUspo="}]},"maintainers":[{"name":"gglnx","email":"info@dennismorhardt.de"}],"_npmUser":{"name":"gglnx","email":"info@dennismorhardt.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simplified-jsx-to-json_0.2.0_1587331496070_0.2140927138453732"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-28T16:32:56.113Z","0.1.0":"2020-03-28T16:32:56.250Z","modified":"2022-05-17T22:49:28.829Z","0.2.0":"2020-04-19T21:24:56.270Z"},"maintainers":[{"name":"gglnx","email":"info@dennismorhardt.de"}],"description":"Converts basic JSX code into a JSON representation, which can be used by React.createElement","homepage":"https://github.com/gglnx/simplified-jsx-to-json#readme","keywords":["jsx","convert","json","createElement","react","ast"],"repository":{"type":"git","url":"git+https://github.com/gglnx/simplified-jsx-to-json.git"},"author":{"name":"Dennis Morhardt","email":"info@dennismorhardt.de","url":"https://dennismorhardt.de"},"bugs":{"url":"https://github.com/gglnx/simplified-jsx-to-json/issues"},"license":"MIT","readme":"# simplified-jsx-to-json [![Build Status](https://travis-ci.org/gglnx/simplified-jsx-to-json.svg?branch=master)](https://travis-ci.org/gglnx/simplified-jsx-to-json)\n\n> Converts simplified JSX code into a JSON representation, which can be used by `React.createElement`\n\n## Install\n\n```\n$ npm install simplified-jsx-to-json\n```\n\n## Usage\n\n```js\nconst jsxToJson = require('simplified-jsx-to-json');\n\njsxToJson('<Test myProp={true}>My Child</Test>');\n//=> '[ [ 'Test', { myProp: true }, \"My Child\" ] ]'\n```\n\n## Features\n\n* `<Test />`: Self-closing JSX tags\n* `<Test myProp=\"string\">`: String props\n* `` <Test myProp={`string`}> ``: Template props\n* `<Test myProp>`: True props\n* `<Test myProp={false}>`: Boolean props\n* `<Test myProp={34}>`: Number props\n* `<Test myProp={3 + 3 + 3}>`: Props with arithmetic, comparison or bitwise operators\n* `<Test myProp={['Test', true, 34]}>`: Arrays (with strings, numbers or booleans)\n* `<Test myProp={{ test: 34 }}>`: Objects with string keys and string, number or boolean value\n* `<>Test</>`: Fragments\n* HTML/SVG DOM attributes are converted to correct React equivalent (`class` -> `className`)\n\n## License\n\nMIT © [Dennis Morhardt](https://dennismorhardt.de)\n","readmeFilename":"README.md"}