{"name":"babel-plugin-apply-mdx-type-prop","version":"1.5.6-ci.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.6-ci.0"},"gitHead":"468970d6aba96aa14b861de805b64e03ae1161d2","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.6-ci.0","_nodeVersion":"12.14.1","_npmVersion":"lerna/3.20.2/node@v12.14.1+x64 (darwin)","dist":{"integrity":"sha512-5ODjyfNoQbuHA4Rp/jNrmOfToHS8xF4e4s3CfRWBz3kT+diKA006SWRC75R/hYduAqVojYF7f59lheYU8l3khA==","shasum":"2ca410ab1b92a2dbcd0618d3cf887aa4527e6248","tarball":"http://registry-npm.ywwl.com/babel-plugin-apply-mdx-type-prop/download/babel-plugin-apply-mdx-type-prop-1.5.6-ci.0.tgz","fileCount":4,"unpackedSize":3968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNEARCRA9TVsSAnZWagAAh14P/1xoHIn3JHaT1anU5yf8\nLGlya5qbg32BxA7y91bD0kvlo/kP/BAOyJ6+O+iH26Aq8VZ5pKOnu1HP+nLF\ncqw4SUdiAE8ndwHcI/BHFRuXo7EcVCQv3ETXd6uUMeJSs06QaY8j+HkdEv2g\npoEl65/7fsYNqhRW6D2M8rOaU6iL5I6QM/W/kthlFXQhrn8JvMaykvgBH7gv\nVl1EebvyMTolTom6ExrDQT6VamOfyah+rMT6tBwm8OUXRH5BrPyZ/EyBQOrH\n59Zy7MZ/JFNhbrGyAz8/W7pP7M2VcT9KDPnjt8pICFfA8hLinDxQVFjKtX5h\n9P/X3W1yg/gIV3vO9TcR8O/uOPRR8uBfBlfLTh7zw1b3ptwp2OHqAnrQwZmU\nEmPulBp5t0ZOYKrPSi6X6YHTTdE5ptjPaka70ZxJ64zXTX/Tne7hbrftynxW\n28sXYnH/rS4/aMzvSiaPaNNQrmUowIwUYEjzo/gRYz5aYuie+tmo8qdJtxRu\nVfj25klmZFVHf042FaU2zpwqm9TI2RVv5XigS10nDrMRGNeoD2J696d2StGm\nO70z19Fuh0pSbyLr643RsCF5vciG4ZKqVQMwCamLZAXJjeV2KiSTr/cRBMSS\nK1XDrtWKL2kGM8vClUXSw6vfTxI9VovxJRgzFNDqPYMlt+UHF3xflL+9p7Rc\nb2fj\r\n=plh5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKYR3AFN7zBAaUwFBpBav/1oaj5N6jO/WnhOZ5vgNcSAiEAvUSZo+nVLGMEYy3G4oNEf2mZZLGSbAzxEvef6g4hsL8="}],"size":1995,"noattachment":false,"key":"/babel-plugin-apply-mdx-type-prop/-/babel-plugin-apply-mdx-type-prop-1.5.6-ci.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.6-ci.0_1580482576714_0.6236018825270384"},"_hasShrinkwrap":false,"publish_time":1580482576815,"_cnpm_publish_time":1580482576815,"dist-tags":{"ci":"1.6.13-ci.1","latest":"2.0.0","next":"2.0.0-next.8"}}