copy-paste
Advanced tools
Comparing version 1.4.0 to 1.5.0
14
index.js
var child_process = require("child_process"); | ||
var spawn = child_process.spawn; | ||
var execSync = child_process.execSync | ||
var util = require("util"); | ||
var execSync = (function() { | ||
if(child_process.execSync) { // Use native execSync if avaiable | ||
return function(cmd) { return child_process.execSync(cmd); }; | ||
} else { | ||
try { // Try using fallback package if available | ||
var execSync = require("sync-exec"); | ||
return function(cmd) { return execSync(cmd).stdout; }; | ||
} catch(e) {} | ||
} | ||
return null; | ||
})(); | ||
var config; | ||
@@ -19,0 +7,0 @@ |
{ "name": "copy-paste" | ||
, "version": "1.4.0" | ||
, "version": "1.5.0" | ||
, "description": "A command line utility that allows read/write (i.e copy/paste) access to the system clipboard." | ||
@@ -18,4 +18,2 @@ , "keywords": [ "copy", "paste", "copy and paste", "clipboard" ] | ||
{ "iconv-lite": "^0.4.8" } | ||
, "optionalDependencies": | ||
{ "sync-exec": "~0.6.x" } | ||
, "devDependencies": | ||
@@ -22,0 +20,0 @@ { "mocha": "*", "should": ">=8.2.1" } |
1
10694
159