Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.0.3 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);
})
})
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc