Socket
Socket
Sign inDemoInstall

shellwords

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

.npmignore

13

lib/shellwords.js

@@ -0,1 +1,2 @@

// Generated by CoffeeScript 1.3.3
(function() {

@@ -23,3 +24,5 @@ var scan;

var field, words;
if (line == null) line = "";
if (line == null) {
line = "";
}
words = [];

@@ -30,3 +33,5 @@ field = "";

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");
if (garbage != null) {
throw new Error("Unmatched quote");
}
field += word || (sq || dq || escape).replace(/\\(?=.)/, "");

@@ -38,3 +43,5 @@ if (seperator != null) {

});
if (field) words.push(field);
if (field) {
words.push(field);
}
return words;

@@ -41,0 +48,0 @@ };

@@ -5,3 +5,3 @@ {

"description": "Manipulate strings according to the word parsing rules of the UNIX Bourne shell.",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "https://github.com/jimmycuadra/shellwords",

@@ -16,10 +16,7 @@ "repository": {

},
"engines": {
"node": ">= 0.4"
},
"dependencies": {},
"devDependencies": {
"jasmine-node": "~1.0.12",
"nodewatch": "~0.0.4"
"jasmine-node": "~1.0.26",
"nodewatch": "~0.1.0"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc