copy-paste
Advanced tools
Comparing version 1.0.1 to 1.0.2
22
index.js
@@ -1,12 +0,18 @@ | ||
var spawn = require("child_process").spawn; | ||
var child_process = require("child_process"); | ||
var spawn = child_process.spawn; | ||
var util = require("util"); | ||
try { | ||
var execSync = (function() { | ||
var execSync = require("execSync"); | ||
return function(cmd) { return execSync.exec(cmd).stdout; }; | ||
})(); | ||
} | ||
catch(e) { execSync = null; } | ||
var execSync = (function() { | ||
if(child_process.execSync) { // Use native execSync if avaiable | ||
return function(cmd) { return child_process.execSync(cmd).toString(); } | ||
} else { | ||
try { // Try using fallback package if available | ||
var execSync = require("execSync"); | ||
return function(cmd) { return execSync.exec(cmd).stdout; }; | ||
} catch(e) {} | ||
} | ||
return null; | ||
})(); | ||
var config; | ||
@@ -13,0 +19,0 @@ |
{ "name": "copy-paste" | ||
, "version": "1.0.1" | ||
, "version": "1.0.2" | ||
, "description": "A command line utility that allows read/write (i.e copy/paste) access to the system clipboard." | ||
@@ -4,0 +4,0 @@ , "keywords": [ "copy", "paste", "copy and paste", "clipboard" ] |
6659
102