Socket
Book a DemoInstallSign in
Socket

@svelte-put/copy

Package Overview
Dependencies
Maintainers
1
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

3.0.2
Source
npmnpm
Version published
Weekly downloads
1.7K
-8.51%
Maintainers
1
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 on:copied="{handleCopied}">Click to copy this</button>

Changelog

Keywords

svelte

FAQs

Package last updated on 19 May 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.