This commit is contained in:
Stephen Franceschelli 2019-07-30 13:41:05 -04:00
parent 596a6da241
commit c1a589c5b6
7078 changed files with 1882834 additions and 319 deletions

19
node_modules/shellwords/LICENSE generated vendored Normal file
View file

@ -0,0 +1,19 @@
Copyright (C) 2011 by Jimmy Cuadra
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

19
node_modules/shellwords/README.md generated vendored Normal file
View file

@ -0,0 +1,19 @@
# Shellwords
Shellwords provides functions to manipulate strings according to the word parsing rules of the UNIX Bourne shell. It is based on [the Ruby module of the same name](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/shellwords/rdoc/Shellwords.html).
## Installation
Add "shellwords" to your `package.json` file and run `npm install`.
## Example
``` javascript
var shellwords = require("shellwords");
shellwords.split("foo 'bar baz'");
// ["foo", "bar baz"]
shellwords.escape("What's up, yo?");
// 'What\\\'s\\ up,\\ yo\\?'
```

57
node_modules/shellwords/lib/shellwords.js generated vendored Normal file
View file

@ -0,0 +1,57 @@
// Generated by CoffeeScript 1.3.3
(function() {
var scan;
scan = function(string, pattern, callback) {
var match, result;
result = "";
while (string.length > 0) {
match = string.match(pattern);
if (match) {
result += string.slice(0, match.index);
result += callback(match);
string = string.slice(match.index + match[0].length);
} else {
result += string;
string = "";
}
}
return result;
};
exports.split = function(line) {
var field, words;
if (line == null) {
line = "";
}
words = [];
field = "";
scan(line, /\s*(?:([^\s\\\'\"]+)|'((?:[^\'\\]|\\.)*)'|"((?:[^\"\\]|\\.)*)"|(\\.?)|(\S))(\s|$)?/, function(match) {
var dq, escape, garbage, raw, seperator, sq, word;
raw = match[0], word = match[1], sq = match[2], dq = match[3], escape = match[4], garbage = match[5], seperator = match[6];
if (garbage != null) {
throw new Error("Unmatched quote");
}
field += word || (sq || dq || escape).replace(/\\(?=.)/, "");
if (seperator != null) {
words.push(field);
return field = "";
}
});
if (field) {
words.push(field);
}
return words;
};
exports.escape = function(str) {
if (str == null) {
str = "";
}
if (str == null) {
return "''";
}
return str.replace(/([^A-Za-z0-9_\-.,:\/@\n])/g, "\\$1").replace(/\n/g, "'\n'");
};
}).call(this);

56
node_modules/shellwords/package.json generated vendored Normal file
View file

@ -0,0 +1,56 @@
{
"_from": "shellwords@^0.1.1",
"_id": "shellwords@0.1.1",
"_inBundle": false,
"_integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==",
"_location": "/shellwords",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "shellwords@^0.1.1",
"name": "shellwords",
"escapedName": "shellwords",
"rawSpec": "^0.1.1",
"saveSpec": null,
"fetchSpec": "^0.1.1"
},
"_requiredBy": [
"/node-notifier"
],
"_resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz",
"_shasum": "d6b9181c1a48d397324c84871efbcfc73fc0654b",
"_spec": "shellwords@^0.1.1",
"_where": "E:\\github\\setup-java\\node_modules\\node-notifier",
"author": {
"name": "Jimmy Cuadra",
"email": "jimmy@jimmycuadra.com",
"url": "http://jimmycuadra.com/"
},
"bugs": {
"url": "https://github.com/jimmycuadra/shellwords/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Manipulate strings according to the word parsing rules of the UNIX Bourne shell.",
"devDependencies": {
"jasmine-node": "~1.0.26",
"nodewatch": "~0.1.0"
},
"files": [
"lib"
],
"homepage": "https://github.com/jimmycuadra/shellwords",
"license": "MIT",
"main": "./lib/shellwords",
"name": "shellwords",
"repository": {
"type": "git",
"url": "git://github.com/jimmycuadra/shellwords.git"
},
"scripts": {
"test": "cake spec"
},
"version": "0.1.1"
}