New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clipboard-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

clipboard-copy - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

index.js

@@ -1,2 +0,2 @@

'use strict'
/* global Range */

@@ -10,7 +10,7 @@ module.exports = clipboardCopy

var range = document.createRange()
var range = new Range()
range.selectNode(div)
window.getSelection().addRange(range)
let successful = false
var successful = false
try {

@@ -17,0 +17,0 @@ successful = document.execCommand('copy')

{
"name": "clipboard-copy",
"description": "Lightweight copy to clipboard for web pages",
"version": "1.0.0",
"description": "Lightweight copy to clipboard for the web",
"version": "1.0.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh",

@@ -10,3 +10,3 @@ # clipboard-copy [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url]

### Lightweight copy to clipboard for web pages
### Lightweight copy to clipboard for the web

@@ -46,3 +46,3 @@ The goal of this package is to offer simple copy-to-clipboard functionality in

- **`clipboard-copy` (this package): 465 bytes**
- **`clipboard-copy` (this package): 453 bytes**
- [`clipboard-js`](https://www.npmjs.com/package/clipboard-js): 1.83 kB

@@ -49,0 +49,0 @@ - [`clipboard`](https://www.npmjs.com/package/clipboard): 3.19 kB

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc