{"name":"babel-plugin-apply-mdx-type-prop","version":"1.6.8-ci.4","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.7"},"gitHead":"e24ab3b668eae4c39c9b2ea71a7d471942e640de","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.8-ci.4","_nodeVersion":"12.18.2","_npmVersion":"lerna/3.22.1/node@v12.18.2+x64 (darwin)","dist":{"integrity":"sha512-+FIGjH4aHfp8FQOhFzTjJdPmhiPb6NCWAV47eJVReAWtG6JUcmOK53Oapl83aBZ4StokduKu0vNjSVzp9ayy3w==","shasum":"a12ae567dcf62e69f2003ee22f656fe1e979f519","tarball":"http://registry-npm.ywwl.com/babel-plugin-apply-mdx-type-prop/download/babel-plugin-apply-mdx-type-prop-1.6.8-ci.4.tgz","fileCount":4,"unpackedSize":3975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEJ3GCRA9TVsSAnZWagAAn5wP+wTW0kfVlNdf8qMu9Zab\nI2A5xOSlpSt2AwJBAB/bFbq/6XFjOVLVtzdfyYcbLwaT5ZJJbKHyKzLo3PBA\nELYYUyVK2F3TaZzHA04Gvemo/Z+aNb5sqbfH5u8TsaYCWRzVVxwUHXXqwBmu\nO1N5v4BJuLOEzwTRWKuGaxolwck8sllxaj6iSRkfnABE6dzFy6jSh1hGlR0f\nRqXgeCFJxpRTYG1aFSFo19g0bIm9p8qFzxcuLHVrgm9re1jH+HAdTVaQGJ5p\nvo5WgjmfOHFcSYuuI0pZz2Ywk/NlkZR+xXGV07T5An++yJPgfJKLKCVleLtD\n/Pwj1Pk6nSg4sDwVjPPMUfuO02FNDElIctGP8TMXDOYAmZAAic3rm6EfL341\nuPav9u3eh1C852fxmRE2TOQ3P2EXBqgNLQ+EOsbUIyfi47rJS1M6Nv4X0myY\nxr4XnLaxNamxw252DiOh1RqdnmvzlB7BHDHv6TbD5wmY6eksCcmBWw+Zbs+9\nNrtov3VLBa1zbJ3vOVQMkSTDljlR6/9tXLCnEvfJsQQ3/eLjDr1IZspTHU48\nAPhE4KpOLKAV+jw2lOnLVgIXIO0N2KE2pwTeZIHuBTrQv8lSMBehURityufa\nQxrwCBN243T83JCTPWjOnwUBePr0eA+TEJAhK40TA9c0t9j6eg5haTt2MKZE\nFiP0\r\n=Kh6T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGltdx66KnqZ6d02FPKHyenROCYWJhrdXRYqBOQe5tclAiEAuBUn2LzQj+62jR8CeCpfK8XY0INJmX6aTxhRxmRHHIs="}],"size":1999,"noattachment":false,"key":"/babel-plugin-apply-mdx-type-prop/-/babel-plugin-apply-mdx-type-prop-1.6.8-ci.4.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.8-ci.4_1594924485731_0.4414457581384388"},"_hasShrinkwrap":false,"publish_time":1594924485852,"_cnpm_publish_time":1594924485852,"dist-tags":{"ci":"1.6.13-ci.1","latest":"2.0.0","next":"2.0.0-next.8"}}