Socket
Socket
Sign inDemoInstall

nuxt-clipboard

Package Overview
Dependencies
6
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nuxt-clipboard

A "copy to clipboard" module for Nuxt.js using vue-clipboard2


Version published
Weekly downloads
1.7K
increased by1.01%
Maintainers
1
Install size
271 kB
Created
Weekly downloads
 

Changelog

Source

0.0.7 (2022-01-03)

Bug Fixes

  • :fire: fix of nuxt module for vue use (b6520b8)
  • deps: bump actions/stale from 3.0.18 to 4 (3ed0d92)
  • deps: bump handlebars from 4.7.6 to 4.7.7 (5f44494)
  • deps: bump hosted-git-info from 2.8.8 to 2.8.9 (23bd0ab)
  • deps: bump lodash from 4.17.20 to 4.17.21 (e52401d)
  • deps: bump path-parse from 1.0.6 to 1.0.7 (ce38445)
  • update auth information and change reviewer in dependabot pr (27a1ec4)

Readme

Source

Nuxt Clipboard

Latest Version on NPM Software License npm npm

A "copy to clipboard" module for Nuxt.js using vue-clipboard2

♻️ Setup

  • Add nuxt-clipboard dependency using yarn or npm to your project
  • Add nuxt-clipboard to modules section of nuxt.config.js
export default {
    modules: [
        // simple usage
        'nuxt-clipboard',
        // with options
        ['nuxt-clipboard', { autoSetContainer: true }]
    ],
    clipboard: {
        autoSetContainer: true
    }
}

🔥 Usage

You can use $copyText in almost any context using app.$copyText or this.$copyText (Including store actions).

See vue-clipboard2 official docs for more usage information.

export default {
    methods: {
        async copySomething(text) {
            try {
                await this.$copyText(text);
            } catch (e) {
                console.error(e);
            }
        },
    },
};

License

The MIT License (MIT)

Copyright (c) 2020 Chantouch Sek

Keywords

FAQs

Last updated on 03 Jan 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc