New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

paste-image

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paste-image

Cross-browser pasting of images

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

paste-image Build Status Coverage Status Dependency Status

Selenium Test Status

Cross-browser pasting of images

Live Demo

A simple example that works in all major browsers.

Example

// Listen for all image paste events on a page
pasteImage.on('paste-image', function (image) {

  // Display the image by appending it to the end of the body
  document.body.appendChild(image);

});

Install via NPM

npm install paste-image

Why?

It's 2016 and Chrome is the only browser to properly implement the Clipboard API. Let's wrap up some workarounds and provide an easy way to provide cross-browser image pasting.

Contributing

Keywords

paste

FAQs

Package last updated on 17 Sep 2016

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