{"_id":"@anyfork/vuepress-plugin-code-copy","_rev":"2-004ca87ce34e5f0e60ebbcd9aba133f8","name":"@anyfork/vuepress-plugin-code-copy","dist-tags":{"latest":"0.1.0-beta.2"},"versions":{"0.1.0-beta.0":{"name":"@anyfork/vuepress-plugin-code-copy","version":"0.1.0-beta.0","description":"vuepress plugin code copy for vuepress v1.x","main":"index.js","license":"MIT","author":{"name":"anyfork"},"publishConfig":{"access":"public"},"keywords":["@anyfork/vuepress-plugin-code-copy","vuepress","plugin","vuepress-plugin-code-copy","code copy"],"homepage":"https://github.com/AnyFork/vuepress-plugin-1.x/issues","bugs":{"url":"https://github.com/AnyFork/vuepress-plugin-1.x/issues/issues"},"repository":{"type":"git","url":"git+https://github.com/AnyFork/vuepress-plugin-1.x/issues"},"dependencies":{"clipboard":"2.0.4"},"_id":"@anyfork/vuepress-plugin-code-copy@0.1.0-beta.0","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-FAsObQ7Px/J/a3jbc21e4QYqLYze3xjddAJk6nHV0Wba9wA7hjR4gfCjEZL8oQBe+mpXH/mShH8dGgpuHWpXTQ==","shasum":"caa1fcaea9b182d2c625566a037543330e0ed55b","tarball":"https://registry.npmjs.org/@anyfork/vuepress-plugin-code-copy/-/vuepress-plugin-code-copy-0.1.0-beta.0.tgz","fileCount":9,"unpackedSize":9287,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVG+ZxgEOOvFCllpxUCSeHYLSigoI6yXYLjK6xV9DLgAIgMf0cxTgwByCZpl+mQ2IkkhFJ1MGfjVsZVH4hmKoSeY4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1CMfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIKA//UXhks2RmYg0C5IV5/fKbA0OR3l196KtgeRQGQuOx8C3wE5gS\r\nme/SdJZ66mZ0Oo1ZfTOAC/X2SPGVMuk7oAdqy9TyoLUSBCohQ4ujZDSfWgqa\r\nLbLF3CKmIsuGEeJD/DpQ4/JTvQzeJNCJrf3H6yHYshku6kb4AM+/JqLXnn2M\r\nycix8LwebOZigDf7Qgk9HA1j/4ckor32errXH32ypj63ClIUA/yEO/bxcuPG\r\nRtscKPUDjz8mHczDXPA/k4NX94ZeOCAZynhv8A1AwCHG4gigFZI4DVuRrf12\r\nDfmVq1vzlJw1FS7vytNuCtZnDrt3XkGhZn6jrsRQMcbr7zEJzbLJJrvHmwZ0\r\nbafotgTYv/tRUxAV+KqYUqL7kMZkLPM2scUaT+gvalIrM/39ze1S7GRL8uyK\r\nuhWXkpI5L1jOgbKeHXV9fbcYcz2MGFqEIMWIqAnICQ9+zXySjFmtykOUnoxB\r\n+QINV3JBqWkTB9sHCDZ8sejm36QwpKQvsVAMU6PV7qrxQ2hKdWUhp6ymEXop\r\n8UcyndWAWt4tIEpYHcPZ9EYqs6S4JtmqOxSBcCs1Jubbhuz3xpkZ89kEs3gf\r\nY36YiL2miuZaTXZqCI9T2SXiX1BES1Mw1HNzq+BGZSTAFftCGRshkQibrYhr\r\n4ZO02FL+1Z8I4ew0qPThnUGcVCzdPCgiSTc=\r\n=u6+L\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anyfork","email":"874957743@qq.com"},"directories":{},"maintainers":[{"name":"anyfork","email":"874957743@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vuepress-plugin-code-copy_0.1.0-beta.0_1658069791730_0.631375020368109"},"_hasShrinkwrap":false},"0.1.0-beta.1":{"name":"@anyfork/vuepress-plugin-code-copy","version":"0.1.0-beta.1","description":"vuepress plugin code copy for vuepress v1.x","main":"index.js","license":"MIT","author":{"name":"anyfork"},"publishConfig":{"access":"public"},"keywords":["@anyfork/vuepress-plugin-code-copy","vuepress","plugin","vuepress-plugin-code-copy","code copy"],"homepage":"https://github.com/AnyFork/vuepress-plugin-1.x/issues","bugs":{"url":"https://github.com/AnyFork/vuepress-plugin-1.x/issues/issues"},"repository":{"type":"git","url":"git+https://github.com/AnyFork/vuepress-plugin-1.x/issues"},"dependencies":{"clipboard":"2.0.4"},"_id":"@anyfork/vuepress-plugin-code-copy@0.1.0-beta.1","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-TC5xAekRIfCIBrdbIf1drSlaFA9L/22XiDCCoPddgtRuxwaETu3fXFoyVgNpdtFxiiqpxGkPD+hJNRE8HEX2MA==","shasum":"37b13bdf4a3eea409e16db328b2c3b0bca27a503","tarball":"https://registry.npmjs.org/@anyfork/vuepress-plugin-code-copy/-/vuepress-plugin-code-copy-0.1.0-beta.1.tgz","fileCount":9,"unpackedSize":9266,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICC9xpKe7GQb3jehRgyJy7Zy0VPTPxLBkxta7sRYw92mAiEAmgRPzRnnWW0FarWwBB9BBm0bs2TyzhaZ/W3RxnMYb3w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1Ct2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7SQ/+OYJ+5EOn9VlVpclkGHHLl4x4CXb6QIVC2DIu0wFGXHgwb+Zv\r\nPXOhSkRjq4u+SL8aidpyuBiCrA8adSFPRF1hqzCwZ/oRZFT/Y4crhtqx7/w1\r\nW2WwUqi04T6HImZoJh0I3CcaVG2gG8thA1iwsa3Lq+8075fWjtCJCcB808wL\r\nE2cibau8KAXsIYjO0oG/I6C8/Qbf6sa3bUAXIgvGSAqZlxukd9pPv98OftFS\r\nya/5LXvzh2S20rmOdp3OOKerean/30Xvg29h3HAksRwhU00wxmauF9lRlWQJ\r\nyqC8swgksJVvtXSYVLkpaFEUOb+rWX7bUE5vISJVeTZIqx1YKOIAaQHuLmuZ\r\nmc68iEkLJSpj4TQ+ubvOTg71TeedLG4O6PVaK0jBlZooV4VQElnmPj9SJcO0\r\nWS/XTNnYzvD4GYn7FPLQRGUgm0acoWS/BkIMeqy/uo5/7dnV841muRRmYEBE\r\nl3sAixxxUYicGN8AwH709RcoqS46rsCw8EYiUtARhlXtd9hsruSI+Nhf8LDH\r\nFbbD3NskyUICEFo5T96clZDBdl3DJ+O79nPSX8G5FLqHIOC5uuZ0Ika/yPea\r\nuZwVhsUbQzzAvk+76FQDEPTxAywvkdDUD8igfEIkvBHx17NwSvD8yaAkxXYq\r\nBRuZIcc7N7e9HD9/q/39knPWHb/XIBuglcs=\r\n=pdNp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anyfork","email":"874957743@qq.com"},"directories":{},"maintainers":[{"name":"anyfork","email":"874957743@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vuepress-plugin-code-copy_0.1.0-beta.1_1658071925893_0.24891595836807934"},"_hasShrinkwrap":false},"0.1.0-beta.2":{"name":"@anyfork/vuepress-plugin-code-copy","version":"0.1.0-beta.2","description":"vuepress plugin code copy for vuepress v1.x","main":"index.js","license":"MIT","author":{"name":"anyfork"},"publishConfig":{"access":"public"},"keywords":["@anyfork/vuepress-plugin-code-copy","vuepress","plugin","vuepress-plugin-code-copy","code copy"],"homepage":"https://github.com/AnyFork/vuepress-plugin-1.x/issues","bugs":{"url":"https://github.com/AnyFork/vuepress-plugin-1.x/issues/issues"},"repository":{"type":"git","url":"git+https://github.com/AnyFork/vuepress-plugin-1.x/issues"},"dependencies":{"clipboard":"2.0.4"},"_id":"@anyfork/vuepress-plugin-code-copy@0.1.0-beta.2","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-k9q9IAWV6I63qTB9iOc+nbe5j1CTCm1fXxeSt/NKxad4PbBTizinZ3T2rjGo0zBUcsGE0k/yGTYoFOjlz0iK1A==","shasum":"11b6eff14a9470e3c6a73db75ac24f570316c8de","tarball":"https://registry.npmjs.org/@anyfork/vuepress-plugin-code-copy/-/vuepress-plugin-code-copy-0.1.0-beta.2.tgz","fileCount":9,"unpackedSize":9054,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuB71E9tdcxG6nOUrW6AqWiq3BA0jU0RHpQ/WU4UAlgQIhAPT0nFWfpbVOR00sfM9HX6BV3iatmUzYh7E4pv55x6F4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1C8AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSNQ/9GCztQRipOPp8Vwv3Zbs7M+vt2UqyL1PTbAE/2ZyutiWetQuI\r\ndiYhT6ZTg7bKITApkwLWNC8j4sT1F+QrZ0EGezDT3UVRHCc21u19fr4D64CE\r\n7ikZK1NKn+tjGqq9Xnit1a8wBrVezmHwFTOH3ppfBFGmSJk8vrnomzz2gYpE\r\nhRfUy2lIi4IKV+PY9biO7yAnEnlG2s8mTzSI7C57LwAep+ekma/Xi4M82c+J\r\nG9xJnUoXrJwWOzlxlH58fy5jB36FwEbfr6XHTfuzC1JjL5RXOQkAeKA3vtYu\r\nNFrdMtMGXCnMCNY214VdTU6PmKHP23YYfiY2hAo9oMZ6dVSWcDcM1U6xQcoK\r\nhGjn8rBPj9ouOGPtC9HEEkdhlkMqt2y00EKZ/cnpdsZDonChEuI8iiFf4PTK\r\nGa4tQY5zF7IbTF0KvI3cXuACNU7NiH3sn3zb0Oxzw47JAOOGFlI7XYOnDTWV\r\nw9Yr75N21K+ILaJ86pHn+VrOMfwVkvnc9wU8oJxfGbRtFbMtxOclGcm+dcp3\r\nrCpSPf3guH4o1cftSV3lwBB5tu8IXMRVGuV1EWBwJMWesptqfBdpOUSeKkFV\r\nr6ugxdA99MOlnFod1qzdkusUgcGHjIFDlNGq3ZEOePkvKg4HQbKUsUmWeHe4\r\noOfUf6h04ht6Z/TR3DVClfgJXe4pmiyUwaQ=\r\n=Rhaq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anyfork","email":"874957743@qq.com"},"directories":{},"maintainers":[{"name":"anyfork","email":"874957743@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vuepress-plugin-code-copy_0.1.0-beta.2_1658072832009_0.4079673417666545"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-17T14:56:31.678Z","0.1.0-beta.0":"2022-07-17T14:56:31.941Z","modified":"2022-07-17T15:47:12.284Z","0.1.0-beta.1":"2022-07-17T15:32:06.152Z","0.1.0-beta.2":"2022-07-17T15:47:12.205Z"},"maintainers":[{"name":"anyfork","email":"874957743@qq.com"}],"description":"vuepress plugin code copy for vuepress v1.x","homepage":"https://github.com/AnyFork/vuepress-plugin-1.x/issues","keywords":["@anyfork/vuepress-plugin-code-copy","vuepress","plugin","vuepress-plugin-code-copy","code copy"],"repository":{"type":"git","url":"git+https://github.com/AnyFork/vuepress-plugin-1.x/issues"},"author":{"name":"anyfork"},"bugs":{"url":"https://github.com/AnyFork/vuepress-plugin-1.x/issues/issues"},"license":"MIT","readme":"## @anyfork/vuepress-plugin-code-copy\r\n\r\n## install\r\n\r\n```sh\r\nnpm i @anyfork/vuepress-plugin-code-copy\r\n# or\r\nyarn add @anyfork/vuepress-plugin-code-copy\r\n```\r\n## usage\r\n- config.js\r\n\r\n```js\r\nmodule.exports = {\r\n  plugins: [\r\n    [\r\n    '@anyfork/vuepress-plugin-code-copy',\r\n    {\r\n      copyText: '复制代码',\r\n      tip: {\r\n        content: '复制成功!'\r\n      }\r\n    }\r\n    ]\r\n  ];\r\n}\r\n```\r\n\r\n## api\r\n\r\n#### selector\r\n\r\nSelector, default to `div[class*=\"language-\"] pre`\r\n\r\n#### copyText\r\n\r\nCopy the text displayed in the code block, the default is `copy code`\r\n\r\n#### change\r\n\r\n`change: (text:string, e:HTMLelement) => void`\r\nWhen copying changes, the callback function, `text` 'is the code block copy text or failure prompt, `e` is the attribute of the component element itself. You can implement some advanced customization functions on this basis (`this` is the current component)\r\n\r\n#### visibleTip\r\n\r\nDisplay the default prompt after code copying. The default is `true`\r\n\r\n#### tip\r\n\r\n- time\r\n  After copying successfully, the display time will be prompted by default, which is `3000` . If it is `infinity`, it is unlimited\r\n- content\r\n  The prompt content after copying successfully. The default is `copy success`\r\n- title\r\n  Title after copying successfully, default is `tips`","readmeFilename":"README.md"}