Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clipboardy

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clipboardy - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

fallbacks/win/copy.exe

20

index.js

@@ -25,9 +25,19 @@ 'use strict';

const winBinPath = path.join(__dirname, 'fallbacks/win-read.vbs');
// Binaries from: https://github.com/sindresorhus/win-clipboard
const winReadBinPath = path.join(__dirname, 'fallbacks/win/paste.exe');
const winWriteBinPath = path.join(__dirname, 'fallbacks/win/copy.exe');
const win32 = {
copy: opts => execa('clip', [], opts),
paste: opts => execa.stdout('cscript', ['/Nologo', winBinPath], opts),
copySync: opts => execa.sync('clip', opts),
pasteSync: opts => execa.sync('cscript', ['/Nologo', winBinPath], opts)
copy: opts => {
const input = opts.input;
delete opts.input;
return execa(winWriteBinPath, [input], opts);
},
paste: opts => execa.stdout(winReadBinPath, opts),
copySync: opts => {
const input = opts.input;
delete opts.input;
return execa.sync(winWriteBinPath, [input], opts);
},
pasteSync: opts => execa.sync(winReadBinPath, opts)
};

@@ -34,0 +44,0 @@

{
"name": "clipboardy",
"version": "1.1.0",
"version": "1.1.1",
"description": "Access the system clipboard (copy/paste)",

@@ -5,0 +5,0 @@ "license": "MIT",

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