You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@svelte-put/copy

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@svelte-put/copy

Svelte action & utilities for copying text to clipboard

4.0.0
latest
Source
npmnpm
Version published
Weekly downloads
1.9K
15.58%
Maintainers
0
Weekly downloads
 
Created
Source

@svelte-put/copy

npm.badge bundlephobia.badge docs.badge

Svelte action use:copy and utility for copying text to clipboard

svelte-put

This package is part of the @svelte-put family. For contributing guideline and more, refer to its readme.

Usage & Documentation

See the dedicated documentation page here.

Quick Start

<script lang="ts">
  import { copy, type CopyDetail } from '@svelte-put/copy';

  function handleCopied(e: CustomEvent<CopyDetail>) {
    console.log('Text copied:', e.detail.text);
  }
</script>

<button type="button" use:copy oncopied={handleCopied}>Click to copy this</button>

Changelog

Keywords

svelte

FAQs

Package last updated on 25 Oct 2024

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