{"name":"babel-plugin-apply-mdx-type-prop","version":"1.5.8-alpha.0","description":"Apply the MDX type prop used in the MDX pragma","repository":{"type":"git","url":"git+https://github.com/mdx-js/mdx.git"},"homepage":"https://mdxjs.com","bugs":{"url":"https://github.com/mdx-js/mdx/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"John Otander","email":"johnotander@gmail.com","url":"http://johnotander.com"},"contributors":[{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stg.me"}],"license":"MIT","keywords":["mdx","markdown","react","jsx","remark","babel"],"peerDependencies":{"@babel/core":"^7.0.0"},"dependencies":{"@babel/helper-plugin-utils":"7.8.3","@mdx-js/util":"^1.5.8-alpha.0"},"gitHead":"c79c1336ffcd7df8cca618cf15a01c107e1a92bb","readme":"# `babel-plugin-apply-mdx-type-prop`\n\nBabel plugin that applies the `mdxType` prop which is\nused by the [MDX](https://mdxjs.com) pragma.\n\nIt also stores all components encountered as `names` in\nthe plugin state.\n\n## Installation\n\n```sh\nyarn add babel-plugin-apply-mdx-type-prop\n```\n\n## Usage\n\n```js\nconst babel = require('@babel/core')\n\nconst BabelPluginApplyMdxTypeProp = require('babel-plugin-apply-mdx-type-prop')\n\nconst jsx = `\nexport const Foo = () => (\n  <div>\n    <Button />\n  </div>\n)\n\nexport default () => (\n  <>\n    <h1>Hello!</h1>\n    <TomatoBox />\n  </>\n)\n`\n\nconst plugin = new BabelPluginApplyMdxTypeProp()\n\nconst result = babel.transform(jsx, {\n  configFile: false,\n  plugins: ['@babel/plugin-syntax-jsx', plugin.plugin]\n})\n\nconsole.log(result.code)\nconsole.log(plugin.state.names)\n```\n\n### Input\n\n```js\nexport const Foo = () => (\n  <div>\n    <Button />\n  </div>\n)\n\nexport default () => (\n  <>\n    <h1>Hello!</h1>\n    <TomatoBox />\n  </>\n)\n```\n\n### Output\n\n```js\nexport const Foo = () => (\n  <div>\n    <Button mdxType=\"Button\" />\n  </div>\n)\n\nexport default () => (\n  <>\n    <h1>Hello!</h1>\n    <TomatoBox mdxType=\"Button\" />\n  </>\n)\n```\n\n## License\n\nMIT\n","readmeFilename":"readme.md","_id":"babel-plugin-apply-mdx-type-prop@1.5.8-alpha.0","_nodeVersion":"12.16.1","_npmVersion":"lerna/3.20.2/node@v12.16.1+x64 (darwin)","dist":{"integrity":"sha512-BANBhrZnAlU05Qz/cVS87fqLjDvx3KZd0QZXJd8KiOxieiumI5/92ysVPabHICWJ1CSqf1JnObIS9XoXjYg9uw==","shasum":"9a4a9370576fd90e70f8fccbc12ab9a6cb80e950","tarball":"http://registry-npm.ywwl.com/babel-plugin-apply-mdx-type-prop/download/babel-plugin-apply-mdx-type-prop-1.5.8-alpha.0.tgz","fileCount":4,"unpackedSize":3974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUFoJCRA9TVsSAnZWagAA8eIP/0zHhbzxXXdxxMJCohv7\n005y5Xj9/ZxyuwdG0NO8R/FAQHZQqVdeJxnSVO3LkCe40R9u0ianOTNMn7Zg\nUo+ue7N8euZdxaxa1GeN9MKyufb3J+go/2GLumyKX6D66qVp4IoRGx1cr6Kq\nFEZbXj+5Haaf5WoSgPiGez9KN1eqz5zmGE6DgYVWvPIibRi2HryBnMZRzptH\nl1wVGar2CbT3mEImirE6drMSs0Danq+U4CjmfYXGwZ350QxCa08P+cduNsqa\nqtPkHui5HX8LIDzh+CC1aQBh+hyXdbLAHFWjqjlwc30xshhW8V8364fTLtZa\nBLBKOMKEKDgoEKolzukD016FposLu9ne/9ifbi90w49PXIOPSRZ6n7GXCUbQ\nRDu1TGCbl+3bZ/FLFUCn0AuTpBUJZMI2bN0G3aiLFt6A5u1wC/GRPqg0Qxon\n1wbqV4fF8gnXhvN780lVh6JxbMj1vvnibrUO0jmvotgaDiqLNiUFOMIs28W4\nFZc416ggBrQCxBGy340CN/afrJeBP5+Mz+41463+tGK8FDy77sk5i6T+XtIf\n9ecXGqvh3WUKL8828hhsOWv1qQtkvORxiQQ1U+fFLybovlQMaQEVYLIBnu1+\n/v89hjwCfraaVdRpsX2R7NIWTYlWngYpledJ1GsoS+g0TNMihy7a6iHjJcxu\nJD8Z\r\n=/WK3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBmlFTrkemLiNrkZIPFchoeKN3Xzp7utoiJZ+9yZN/aVAiEA1WINCmYt5RdMK0e/NK9RVqjZ/hY+9Zs8bS0JF4qo/Wg="}],"size":1998,"noattachment":false,"key":"/babel-plugin-apply-mdx-type-prop/-/babel-plugin-apply-mdx-type-prop-1.5.8-alpha.0.tgz"},"maintainers":[{"email":"johnotander@gmail.com","name":"johno"},{"email":"matija.marohnic@gmail.com","name":"silvenon"},{"email":"tim@timneutkens.nl","name":"timneutkens"},{"email":"tituswormer@gmail.com","name":"wooorm"}],"_npmUser":{"name":"johno","email":"johnotander@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-apply-mdx-type-prop_1.5.8-alpha.0_1582324233067_0.867176845077523"},"_hasShrinkwrap":false,"publish_time":1582324233310,"_cnpm_publish_time":1582324233310,"dist-tags":{"ci":"1.6.13-ci.1","latest":"2.0.0","next":"2.0.0-next.8"}}