{"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":"http://registry-npm.ywwl.com/simplified-jsx-to-json/download/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="}],"size":7431,"noattachment":false,"key":"/simplified-jsx-to-json/-/simplified-jsx-to-json-0.2.0.tgz"},"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,"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","publish_time":1587331496270,"_cnpm_publish_time":1587331496270,"dist-tags":{"latest":"0.2.0"}}