Socket
Socket
Sign inDemoInstall

@scalar/use-clipboard

Package Overview
Dependencies
22
Maintainers
8
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @scalar/use-clipboard

tiny wrapper around the clipboard API


Version published
Weekly downloads
811
decreased by-29.6%
Maintainers
8
Install size
6.80 kB
Created
Weekly downloads
 

Readme

Source

Scalar useClipboard()

Version Downloads License Discord

Installation

npm install @scalar/use-clipboard

Usage

import { useClipboard } from '@scalar/use-clipboard'

const { copyToClipboard } = useClipboard()

copyToClipboard(
  'The average distance between the Earth and the Moon is 384 400 km (238 855 miles).',
)

Keywords

FAQs

Last updated on 18 Jan 2024

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