{"name":"babel-plugin-apply-mdx-type-prop","version":"1.6.13-ci.1","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.10.5"},"dependencies":{"@babel/helper-plugin-utils":"7.10.4","@mdx-js/util":"1.6.12"},"gitHead":"33e6df2574154964d0fee2cca29ff707285cfefc","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.6.13-ci.1","_nodeVersion":"12.18.2","_npmVersion":"lerna/3.22.1/node@v12.18.2+x64 (darwin)","dist":{"integrity":"sha512-8IfLTjEl0tVMy5QMKd36zmJKOhDuLZwC15iZLQNczQXG5Sutj17jIPvMzNnTDjCi0NnLoWF3QeY9CMuTrMjOgg==","shasum":"c5d2f6585d63b8bf3d6ffdf8324155ddec69f749","tarball":"http://registry-npm.ywwl.com/babel-plugin-apply-mdx-type-prop/download/babel-plugin-apply-mdx-type-prop-1.6.13-ci.1.tgz","fileCount":4,"unpackedSize":3976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFbO+CRA9TVsSAnZWagAAMzgP/3plr8ZjXvobZBtwPAKT\nGCGqMb98pJkcJ9VCwhJzyagcILe25ln9dhfnCPb2oulUpd5jhKLfuwca1Ptp\nVe+z8g/Cya7dn6FxYSLejBbjbJs+Gk5ObfXsJvrnSFlp12YdkPgFxk5H7Jlz\nfiZfwLUQhtboNIQJuNaE+CbckUyY+H8br4qSpmJmtiWE8W0PJJ6D69rDTaue\nDQ+4pzlTlOjDq7g0EDFg/TEiUi5iNZ44aMd3ddA+mFLJdZD2WesCZQwFGdo2\nvwzGKTjoTStxjiRa5NwmTqHtLmVNgHgVo+Gp6L1bR4Tg9lWnicbkOkGKlK0b\nadXP4o04ZvcpdxQs6v6Qdek3JqBRgAj3NnRcymnHOh0htxbg5PwnXjM1/+N/\nYMFIAREsLnZa0PNTryXJRUeuYyNnIW7wOzNcA8ELW26y9fD6wAJOgQOIBjzl\nBu4b9i6UD1icDhwD8dJTU8x1zUJVRunKc5PFrYKaY3L0riQvrVGt52pCwcaT\ntLCiZH54QrhFEKkLhFcR7VxOUQWxuKKs0H3uyintwSkS96u3+0NI7S5VNdTR\noI3nsSpvAmCcEIVS7v1xxFJrQKExXzk3f3K8mahsDwA7KgVvYtH54+U0rGn+\nnOZEvhjQh+THsaqxUjNDDasutRCS4JKoy2l0Kq1/PfldvyBbhPeyEHX+hSrj\nNfwO\r\n=6ssN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFchhF8g7GgY9r6v6uXygz8KV8AZEDB81FMbMod+19EPAiEAykh01lEIAukSWNP3ixr05fIfqR1YxYNx0DBiCu+C/+U="}],"size":1998,"noattachment":false,"key":"/babel-plugin-apply-mdx-type-prop/-/babel-plugin-apply-mdx-type-prop-1.6.13-ci.1.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.6.13-ci.1_1595257789605_0.520708310253247"},"_hasShrinkwrap":false,"publish_time":1595257789729,"_cnpm_publish_time":1595257789729,"dist-tags":{"ci":"1.6.13-ci.1","latest":"2.0.0","next":"2.0.0-next.8"}}