You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

spawn-args

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spawn-args - npm Package Compare versions

Comparing version

to
0.0.4

3

index.js

@@ -17,2 +17,5 @@ module.exports = function(args){

// remove escaped newlines
args = args.replace(/\\\n/g, '');
for(var i=0; i<args.length; i++){

@@ -19,0 +22,0 @@ var c = args.charAt(i);

2

package.json
{
"name": "spawn-args",
"version": "0.0.3",
"version": "0.0.4",
"description": "Turn a string of command line options into an array for child_process.spawn",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -29,2 +29,8 @@ var parse = require('../');

})
it('should parse escaped newlines properly', function() {
var arr = parse('--host hello.com \\\n --port 80')
arr.length.should.equal(4);
})
})