New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@zhengqbbb/vuepress-plugin-clipboard

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@zhengqbbb/vuepress-plugin-clipboard

Vuepress2 plugin - copy clipboard

1.0.2
unpublished
latest
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

qbenben code-copy

base: snippets Vuepress2 code-copy plugin

yarn add -D @zhengqbbb/vuepress-plugin-clipboard

Use:

import type { PluginConfig } from '@vuepress/core'

const codeCopyPlugin: PluginConfig = [
  '@zhengqbbb/vuepress-plugin-clipboard',
  {},
]

export default codeCopyPlugin;

option:

selector: options.selector || 'div[class*="language-"]',
delay: options.delay || 400,
align: options.align || "bottom",
color: options.color || "#3aa675",
backgroundColor: options.backgroundColor || "#71cda3",
backgroundTransition: options.backgroundTransition !== false,
successText: options.successText || "Copied!",
successTextColor: options.successTextColor || options.color || "#349469",
staticIcon: options.staticIcon === true,

License

MIT

FAQs

Package last updated on 29 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts