{"_id":"@cycraft/vue-prism-component","_rev":"7-aeff8768529b3afc5678ec240ea933fe","name":"@cycraft/vue-prism-component","dist-tags":{"latest":"2.0.2"},"versions":{"1.1.1":{"name":"@cycraft/vue-prism-component","version":"1.1.1","author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","_id":"@cycraft/vue-prism-component@1.1.1","maintainers":[{"name":"mesqueeb","email":"mesqueeb@gmail.com"}],"homepage":"https://egoistian.com/vue-prism-component/","bugs":{"url":"https://github.com/egoist/vue-prism-component/issues"},"xo":{"rules":{"import/prefer-default-export":0},"extends":"rem/prettier","ignores":["example/**"]},"cdn":"dist/vue-prism-component.min.js","dist":{"shasum":"96565dd10b9c3914c649c665ebb851b9a13c842f","tarball":"https://registry.npmjs.org/@cycraft/vue-prism-component/-/vue-prism-component-1.1.1.tgz","fileCount":7,"integrity":"sha512-bpo2tRcXi2NOO3lHpq3vm6xzgkbJQ5ZOio0zdqNvz61ehu48xRZbadzmX5PvRxXTcPp5P09QfrEef5f9r7RICA==","signatures":[{"sig":"MEYCIQCC+YSN+DHIOHV+vv55vN3BhiIJJpfJMnwlT2enS4m8bQIhAJujmCBy9Vf7bM9jZYDg3Rp79pDUDDLjUpzdNjy1XqE+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9RQYCRA9TVsSAnZWagAABtsP/ishKLdRaZBNUsnzO49l\nHjIoxdk4XfMnUcnNbfcZacSdkVoXrKEr1duysoFDvBq6i+Lf3MlbzPIzYrJw\n7y9seajlC/JZCvLGvieTZjkrCymQlEwPhBdybTAodfBmn7J10L2ZBvjTe9PB\nAK5CklhLPSxqdwzIdlRCpqjeeq4h8ztYoE8iSIJgTM+W7f3pymXm3CcKaKDP\n7ix/0lI3D/ayEkJjijC/WpEZa1MfBSCLgyF1LdGTsX0LOJ2+tX1sxMIRF/UA\nzMku5nuk6tJkuF8v3R4CNZKox2ZErHbEBrtIT8jPXxIoe/Gf2Sq9oSn2tGfI\nl9qa7TZwptJxZl3oOkUPUCns5D7CvIDihkklJ3qA5NfXI1dc0j/HtO92foWc\nJRTP6x5SElp8JIc73QXh9rGUqHvOUY/ykHTlGzXddqoVT9Ss4V5cbgnRl0Qi\nwuIU+qfz4gsrY0IVCACRABeE2rE3YQ+hJ5OYHp0tHvmELJzOAQuEHC/Q5C2f\nEVaEXS33awRL5GrLbach3eJqc9YblT953nnUY8x+9saAIdNq5VEk+xmAsm2W\nylNldejo52+WdQpsIyhzR6Eov18QUV6WTgdOwyWiDSBj1/D4JOHtbC2/mC4i\n7rBWy+f6UHBFGuI2FHp2EC3Npu1k4wKWY94/ndC8QiXqOhmS7cOsM59r8lKl\nSb6y\r\n=D6DR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/vue-prism-component.esm.js","unpkg":"dist/vue-prism-component.min.js","gitHead":"ac4941f69a44522f37fcc83d0e8b2079be6ed87c","scripts":{"lint":"xo","test":"echo skip","build":"npm run build:umd && npm run build:esm","build:esm":"bili --file-name \"vue-prism-component.esm.js\" --format esm","build:umd":"bili --file-name \"vue-prism-component[min].js\" --format umd --format umd-min --env.NODE_ENV production --module-name PrismComponent --external prismjs --external vue","prepublishOnly":"npm run build"},"_npmUser":{"name":"mesqueeb","email":"mesqueeb@gmail.com"},"repository":{"url":"git+https://github.com/egoist/vue-prism-component.git","type":"git"},"_npmVersion":"7.19.1","description":"vue component for prism.js","directories":{},"_nodeVersion":"16.5.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.18.0","vue":"^3.0.4","bili":"^4.9.0","prismjs":"^1.6.0","eslint-config-rem":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-prism-component_1.1.1_1626674200628_0.9783679499643103","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@cycraft/vue-prism-component","version":"2.0.1","author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","_id":"@cycraft/vue-prism-component@2.0.1","maintainers":[{"name":"mesqueeb","email":"mesqueeb@gmail.com"}],"homepage":"https://egoistian.com/vue-prism-component/","bugs":{"url":"https://github.com/egoist/vue-prism-component/issues"},"xo":{"rules":{"import/prefer-default-export":0},"extends":"rem/prettier","ignores":["example/**"]},"cdn":"dist/vue-prism-component.min.js","dist":{"shasum":"a7308af289a1de03fe298e87feaa799fa1a9e0f4","tarball":"https://registry.npmjs.org/@cycraft/vue-prism-component/-/vue-prism-component-2.0.1.tgz","fileCount":7,"integrity":"sha512-2x4gjCX1n/uEDftWM2aHKChx91ZcYpKxKYow1SasnjoeHgHJwz/K1yyhGXU+zSFvo5yPQhjBmYaEj6VGIEXf5A==","signatures":[{"sig":"MEYCIQDN+N+PyRvlBsjj/RQoyKjgpXf1ZSkk1Jx4xUvnuCoIQAIhAJKCU5oBOySy2G/6tPVr0wCUpsJPx3dwilNsq0hZ21ew","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":131478,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9TkACRA9TVsSAnZWagAAPGoP/3dNC2TfuCWryGEXcRk/\nMGjGoBIPUhIL8WmmxTiKt3CQQUyEZ4B7L1ZYrjlfdS2/OpUgD+k2NXLhXIDW\nnwWCTpdnipmoorlFv1ifz01fkJPpu9V/Y6Z/X4fhY2uSWxlezoSu0lHvpQjD\n8TC/DW19L/3LBV9W699vaNjdE18Gsmy4+cZT01JUE+ECsZ5Ev9AiG4vwGlPu\ne/bCdMLFAvpzB1Xteofz4iGQDklqYH+uedZBYMbInPs1uN5D+kaQ6LfRHF4u\nm5qA6jhKcwwQpzH6vVnvns+oSCU7aGWTZpcpmxsHsUB2cJrKlPIOtg/GVFAZ\nmawHK6iYZGCt6Md6p5B1T9auEU6Y5l/pbN+NXAWshWJLADaWeoS0rGR5gJzS\nr2omJ7ulHRPxb9MHyZ6dfMZIwVl3EK1/8BAjyRolcJeD7oCOUtaPF70m8hp3\nkElkxF9ZxjsGyO486wJW0Bgh99BKzeIbQGy8zd//GpfzIXY0WBkbFk5CPm7C\ndv8tinQCTV7ApvA+W4QOjPtKE2a81sO/vfGf9I20iYea78gk9NMFIQia8vrj\nDeK2y0ucWlpe50qWHartLE+0A4RcXTIJPqL+my+UZT9oTFF04fRXptfRr2JD\nmFUTP6WSt5QutxIhtndnIVPZ5zdP/3HJ1u789FUMMes7FOGNuJrt8D2iaxPL\nYaQ3\r\n=s9+l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/vue-prism-component.esm.js","unpkg":"dist/vue-prism-component.min.js","gitHead":"fce7b50c883aefbb2f882fe909bf677e3e48697c","scripts":{"lint":"xo","test":"echo skip","build":"npm run build:umd && npm run build:esm","build:esm":"bili --file-name \"vue-prism-component.esm.js\" --format esm --bundle-node-modules","build:umd":"bili --file-name \"vue-prism-component[min].js\" --format umd --format umd-min --env.NODE_ENV production --module-name PrismComponent --external prismjs --external vue","prepublishOnly":"npm run build"},"_npmUser":{"name":"mesqueeb","email":"mesqueeb@gmail.com"},"repository":{"url":"git+https://github.com/egoist/vue-prism-component.git","type":"git"},"_npmVersion":"7.19.1","description":"vue component for prism.js","directories":{},"_nodeVersion":"16.5.0","dependencies":{"prismjs":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.18.0","vue":"^3.0.4","bili":"^4.9.0","eslint-config-rem":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-prism-component_2.0.1_1626683648808_0.8541641026229598","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@cycraft/vue-prism-component","version":"2.0.2","author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","_id":"@cycraft/vue-prism-component@2.0.2","maintainers":[{"name":"mesqueeb","email":"mesqueeb@gmail.com"}],"homepage":"https://egoistian.com/vue-prism-component/","bugs":{"url":"https://github.com/egoist/vue-prism-component/issues"},"xo":{"rules":{"import/prefer-default-export":0},"extends":"rem/prettier","ignores":["example/**"]},"cdn":"dist/vue-prism-component.min.js","dist":{"shasum":"03bb9205419ba3827e77152566210611679fd70a","tarball":"https://registry.npmjs.org/@cycraft/vue-prism-component/-/vue-prism-component-2.0.2.tgz","fileCount":7,"integrity":"sha512-7HRL45fUJN3UWqzij4dOL0eQfmIZLqi3mv5k4kT/5CUFVU8ONhWlQkF9X0OJE108VbBdJHxUiFFcSwFDkImrHA==","signatures":[{"sig":"MEUCIQCGy0ygWpiwLU5WL89yTEPW9dvS/XHfrfn832FtpQFf/wIgPMnkrau9CuuAOQ6ctZWNQ7TxsUNQYbbvDf+2Lgsb5KI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":131476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9TtUCRA9TVsSAnZWagAAScUP/3/mqSnbFhjSRJBrlCcu\nnUrd2vvo/tfcnWGS/P6YCyLnA/ygaaHye3xXsl/3vMxy1Gq5Nkjh8wglBkNZ\nUBKkZ30kdKbQ5vM/mSZcsSfT+SN/p6LkAfa0G6uiDojVORFwNfAkpdqorSWo\nJRFNDIw1LzzlZ9NAtF6B+vw723OYGvc/W2YjgmD3t+YVFdmV4WZwCT0zEJ6J\nZvn6AYIHsgsaSd5TjeE6QZHiyDqHrgK/yBqtkndQTE/ZEkDI0lXn2lPYFKL7\nl7+eTigpl0ejl/FzzbhaNXU1xOBO3Y0WujMNdx9umkyLkkzyq0GxGCusuwdJ\nEyS1wiJAfR1PW6ffiFP9jeCcmzpQ5htqTlAfexfsc0V68DsT8swPxbFxEiHh\nsKJcfmY8whWbxKjQAld1SmZB1aJ3vHIh32s4hUuX1BkLIS3vZGnfd74XF7ag\nny8mNnlM9avMh30zunIAqLJskFr5PyOnTeNaErvVa5IuDuOt9Ssb3wrGkffD\niU4fLD4zZns6pO5AD8EiMmoM446ofxS9i4ogelvadKRA1qi7LvUDxB5h8pyh\nkINvcecl+rgG2NAhs8JWPpnZ/+7BlHVREBNwSuC8oFVCstG0ICtZyrxWsIHO\nVCYXk0SkfkYEhuZTtWdUCDU/YxkV23+dTEeAErs3giSKjJz3pL+WgJA+eUO0\nC2YY\r\n=R/D5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/vue-prism-component.esm.js","unpkg":"dist/vue-prism-component.min.js","gitHead":"e3ce9edffc04c71e8f10ceb9996f36192c3f4f70","scripts":{"lint":"xo","test":"echo skip","build":"npm run build:umd && npm run build:esm","build:esm":"bili --file-name \"vue-prism-component.esm.js\" --format esm --bundle-node-modules","build:umd":"bili --file-name \"vue-prism-component[min].js\" --format umd --format umd-min --env.NODE_ENV production --module-name PrismComponent --external prismjs --external vue","prepublishOnly":"npm run build"},"_npmUser":{"name":"mesqueeb","email":"mesqueeb@gmail.com"},"repository":{"url":"git+https://github.com/egoist/vue-prism-component.git","type":"git"},"_npmVersion":"7.19.1","description":"vue component for prism.js","directories":{},"_nodeVersion":"16.5.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.18.0","vue":"^3.0.4","bili":"^4.9.0","prismjs":"^1.6.0","eslint-config-rem":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-prism-component_2.0.2_1626684244349_0.7171529719457932","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-07-19T05:56:40.361Z","modified":"2024-10-28T02:12:18.520Z","1.1.1":"2021-07-19T05:56:40.764Z","2.0.1":"2021-07-19T08:34:08.959Z","2.0.2":"2021-07-19T08:44:04.494Z"},"bugs":{"url":"https://github.com/egoist/vue-prism-component/issues"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","homepage":"https://egoistian.com/vue-prism-component/","repository":{"url":"git+https://github.com/egoist/vue-prism-component.git","type":"git"},"description":"vue component for prism.js","maintainers":[{"email":"t.matsushita0718@gmail.com","name":"tdk0718"},{"email":"hunterliu1003@gmail.com","name":"hunterliu1003"},{"email":"mail@robingenz.dev","name":"robingenz"},{"email":"0x142857@gmail.com","name":"egoist"},{"email":"mesqueeb@gmail.com","name":"mesqueeb"}],"readme":"# vue-prism-component\n\n[![NPM version](https://img.shields.io/npm/v/vue-prism-component.svg?style=flat)](https://npmjs.com/package/vue-prism-component) [![NPM downloads](https://img.shields.io/npm/dm/vue-prism-component.svg?style=flat)](https://npmjs.com/package/vue-prism-component) [![Release Package](https://github.com/egoist/vue-prism-component/workflows/Release%20Package/badge.svg)](https://github.com/egoist/vue-prism-component/actions?query=workflow%3A%22Release+Package%22)  [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/sponsors/egoist)\n\n## Install\n\n```bash\nyarn add vue-prism-component\n```\n\nCDN: [UNPKG](https://unpkg.com/vue-prism-component/dist/) | [jsDelivr](https://cdn.jsdelivr.net/npm/vue-prism-component/dist/)\n\n## Usage\n\nFirst you need to load `Prism` somewhere in your app:\n\n```js\n// yarn add prismjs\nimport 'prismjs'\nimport 'prismjs/themes/prism.css'\n```\n\nOR:\n\n```html\n<link rel=\"stylesheet\" href=\"https://unpkg.com/prismjs/themes/prism.css\" />\n<script src=\"https://unpkg.com/prismjs\"></script>\n```\n\nThen In SFC:\n\n```vue\n<template>\n  <prism language=\"javascript\">{{ code }}</prism>\n</template>\n\n<script>\nimport Prism from 'vue-prism-component'\n\nexport default {\n  data() {\n    return {\n      code: 'const a = b'\n    }\n  },\n  components: {\n    Prism\n  }\n}\n</script>\n```\n\nOr In JSX:\n\n```js\n<Prism language=\"html\">{`\n  <div>\n    <strong>foo</strong>\n  </div>\n`}</Prism>\n```\n\nFor inline rendering, pass the `inline` prop:\n\n```js\n<Prism inline language=\"javascript\" >alert(\"foo\");</Prism>\n```\n\nYou can also set the code using a prop:\n\n```js\nimport 'prismjs/components/prism-rust'\n\n<Prism language=\"rust\" code={ myRustCode } />\n```\n\n## Related\n\n- [vue-highlight-component](https://github.com/egoist/vue-highlight-component): highlight code using highlight.js and vue component.\n\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n\n## Author\n\n**vue-prism-component** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>\nAuthored and maintained by egoist with help from contributors ([list](https://github.com/egoist/vue-prism-component/contributors)).\n\n> [egoistian.com](https://egoistian.com) · GitHub [@egoist](https://github.com/egoist) · Twitter [@rem_rin_rin](https://twitter.com/rem_rin_rin)\n","readmeFilename":"README.md"}