Comparing version 9.1.1 to 9.2.0
@@ -608,2 +608,25 @@ (function() { | ||
thx to https://github.com/xxorax/node-shell-escape/blob/master/shell-escape.js | ||
this.shellescape = function shellescape(a) { | ||
var ret = []; | ||
a.forEach(function(s) { | ||
if (/[^A-Za-z0-9_\/:=-]/.test(s)) { | ||
s = "'"+s.replace(/'/g,"'\\''")+"'"; | ||
s = s.replace(/^(?:'')+/g, '') // unduplicate single-quote at the beginning | ||
.replace(/\\'''/g, "\\'" ); // remove non-escaped single-quote if there are enclosed between 2 escaped | ||
} | ||
ret.push(s); | ||
}); | ||
return ret.join(' '); | ||
} | ||
//=========================================================================================================== | ||
// ESCAPE FOR COMMAND LINE | ||
//----------------------------------------------------------------------------------------------------------- | ||
; | ||
}).call(this); | ||
//# sourceMappingURL=BITSNPIECES.js.map |
{ | ||
"name": "cnd", | ||
"version": "9.1.1", | ||
"version": "9.2.0", | ||
"description": "a grab-bag NodeJS package mainly for functionalities that used to live in coffeenode-trm, coffeenode-bitsnpieces, and coffeenode-types", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. | ||
// see https://doc.deno.land/https/deno.land/std@0.61.0/flags/mod.ts | ||
// import { assert } from "../_util/assert.ts"; | ||
@@ -3,0 +4,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
272050
2149