Socket
Socket
Sign inDemoInstall

copy-image-clipboard

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    copy-image-clipboard

Lightweight copy png and jpg images to clipboard


Version published
Maintainers
1
Created

Readme

Source

Copy Image Clipboard

GitHub top language GitHub language count Repository size GitHub GitHub last commit Repository issues

Created with :heart: by Luan Eduardo da Costa | luan1346@gmail.com


:page_with_curl: About

This library helps you to copy JPG and PNG images to clipboard easily. Can be used with React, Vue, Angular and other web frameworks.

:white_check_mark: Installation

  • Using yarn
yarn add copy-image-clipboard
  • Using npm
npm i copy-image-clipboard

:zap: Usage

// Import the copy function
import copyImg from 'copy-image-clipboard'

// Use the image src attribute here
copyImg('imageSrc')

See the demo folder for a more detailed example with React.

:globe_with_meridians: Compatibility

  • Created and tested using Chrome 84.0

This project uses the asynchronous Clipboard API and the Fetch API. Use the links below to see the browser compatibility:

:blue_book: License

This project is under the MIT license. See the LICENSE for more information.

Keywords

FAQs

Last updated on 02 Aug 2020

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