{"name":"acorn-jsx","description":"Modern, fast React.js JSX parser","homepage":"https://github.com/acornjs/acorn-jsx","version":"5.3.2","maintainers":[{"name":"marijn","email":"marijnh@gmail.com"},{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"rreverser","email":"me@rreverser.com"}],"repository":{"type":"git","url":"git+https://github.com/acornjs/acorn-jsx.git"},"license":"MIT","scripts":{"test":"node test/run.js"},"peerDependencies":{"acorn":"^6.0.0 || ^7.0.0 || ^8.0.0"},"devDependencies":{"acorn":"^8.0.1"},"gitHead":"f5c107b85872230d5016dbb97d71788575cda9c3","bugs":{"url":"https://github.com/acornjs/acorn-jsx/issues"},"_id":"acorn-jsx@5.3.2","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==","shasum":"7ed5bb55908b3b2f1bc55c6af1653bada7f07937","tarball":"http://registry-npm.ywwl.com/acorn-jsx/download/acorn-jsx-5.3.2.tgz","fileCount":6,"unpackedSize":24385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg56NNCRA9TVsSAnZWagAA5mgP/1sSkA7Gf7m7A+yKu3qn\n23R//HOdw4MUi9E/4MbxIxpu6hbMvSIwcBvmqjhJmFehNdleh2i9j7XdzfO3\nJxRbnvynhUo/n+UkRy0IyjDV7q+zy9yhUepO29aXjZ1vutyAiI5Ov5WVUReK\n+2jNLPUPIygwV5hRaXtv1SHhRpDe2NyglZQUcB6H72d9NewuyQee8W5lxOTv\nUiP1R25Qd/Uu9fQcnk8s/wpghmOh77d/vKe6LFLj84cDSwURColVcexZ0OWS\nDaaSau17eeWjGB5F6yF/JXkYKPFC1Xdm2YvIx4yTpRU7R3qxcYyZzDLN1mv0\nSbC5J9nlkTBoFsfRRf5izhkFgzvSK0K2IptGxa9A/JZOXnuIxT9r+mw9kqn7\nw04CZEEI+KeLlGwrJQPAQZbZ/HKSqSGHphav3jWXaFbGJxRd4Y6wot8Q4E3B\nfelcUg/vbBMqVtPWYPCr89FCGTyaOe/+PCxg0ed370yIOdTtnBE2j6cQxain\nc5IuDUjNPrQIu2j96FCBuMPDfr3L/u+OUc6R8W3h8zWvzfKDVuFVO3aXCxdw\nkHCBV1zuwS4quR3VLCKlMa+O4L67d/e0aoUg0efCKFGbiNx89tD8g5RoG5ql\nPH1GjUKlHGoQ76xrhXXga0PzSDI1nKfukiJuNIZiE7Xym+ecZXMnL+lJPfZc\nz0tT\r\n=2TXQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHCxbG6An364TA1DIqzXTBiPm5jjXL5n9+2sUAF87jXwIgE4XovKPhCUzO+DAHVSGQcpnSicFlC8WReL2YJkb2ECc="}],"size":7635,"noattachment":false,"key":"/acorn-jsx/-/acorn-jsx-5.3.2.tgz"},"_npmUser":{"name":"rreverser","email":"me@rreverser.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/acorn-jsx_5.3.2_1625793357384_0.4248602644946817"},"_hasShrinkwrap":false,"readme":"# Acorn-JSX\n\n[![Build Status](https://travis-ci.org/acornjs/acorn-jsx.svg?branch=master)](https://travis-ci.org/acornjs/acorn-jsx)\n[![NPM version](https://img.shields.io/npm/v/acorn-jsx.svg)](https://www.npmjs.org/package/acorn-jsx)\n\nThis is plugin for [Acorn](http://marijnhaverbeke.nl/acorn/) - a tiny, fast JavaScript parser, written completely in JavaScript.\n\nIt was created as an experimental alternative, faster [React.js JSX](http://facebook.github.io/react/docs/jsx-in-depth.html) parser. Later, it replaced the [official parser](https://github.com/facebookarchive/esprima) and these days is used by many prominent development tools.\n\n## Transpiler\n\nPlease note that this tool only parses source code to JSX AST, which is useful for various language tools and services. If you want to transpile your code to regular ES5-compliant JavaScript with source map, check out [Babel](https://babeljs.io/) and [Buble](https://buble.surge.sh/) transpilers which use `acorn-jsx` under the hood.\n\n## Usage\n\nRequiring this module provides you with an Acorn plugin that you can use like this:\n\n```javascript\nvar acorn = require(\"acorn\");\nvar jsx = require(\"acorn-jsx\");\nacorn.Parser.extend(jsx()).parse(\"my(<jsx/>, 'code');\");\n```\n\nNote that official spec doesn't support mix of XML namespaces and object-style access in tag names (#27) like in `<namespace:Object.Property />`, so it was deprecated in `acorn-jsx@3.0`. If you still want to opt-in to support of such constructions, you can pass the following option:\n\n```javascript\nacorn.Parser.extend(jsx({ allowNamespacedObjects: true }))\n```\n\nAlso, since most apps use pure React transformer, a new option was introduced that allows to prohibit namespaces completely:\n\n```javascript\nacorn.Parser.extend(jsx({ allowNamespaces: false }))\n```\n\nNote that by default `allowNamespaces` is enabled for spec compliancy.\n\n## License\n\nThis plugin is issued under the [MIT license](./LICENSE).\n","publish_time":1625793357512,"_cnpm_publish_time":1625793357512,"dist-tags":{"latest":"5.3.2"}}