Narcoleptic Pasta Manufacturer

    vuepress-plugin-one-click-copy

    1.0.6 • Public • Published

    vuepress-plugin-one-click-copy

    A vuepress plugin for clipboard-copy

    npm GitHub stars GitHub license

    Install

    # install dependencies
    npm i vuepress-plugin-one-click-copy -D
    
    # or use yarn
    yarn add vuepress-plugin-one-click-copy -D

    Usage

    Write vuepress config

    module.exports = {
      plugins: ['one-click-copy']
    }

    Options

    This plugin supports the following configurations.

    module.exports = {
      plugins: ['one-click-copy', {
        copySelector: ['div[class*="language-"] pre', 'div[class*="aside-code"] aside'], // String or Array
        copyMessage: 'Copied successfully!', // default is 'Copied successfully!'
        toolTipMessage: 'Copy to clipboard', // default is ''Copy to clipboard'
        duration: 300, // prompt message display time
      }]
    }

    License

    MIT.

    Install

    npm i vuepress-plugin-one-click-copy

    DownloadsWeekly Downloads

    1,509

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    14 kB

    Total Files

    10

    Last publish

    Collaborators

    • vxhly