Socket
Socket
Sign inDemoInstall

shx

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shx - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

lib/printCmdRet.js

@@ -18,4 +18,4 @@ 'use strict';

} else {
process.stdout.write(ret);
}
process.stdout.write(ret);
}
};

@@ -70,6 +70,9 @@ #!/usr/bin/env node

args.forEach(function (arg) {
var match = arg.match(/^s\/(.*)\/(.*)\/(g?)$/);
var match = arg.match(/^s\/(.*[^\\])\/(.*[^\\])\/(g?)$/);
if (match && lookingForSubstString) {
newArgs.push(new RegExp(match[1], match[3]));
newArgs.push(match[2]);
var regexString = match[1].replace(/\\\//g, '/');
var replacement = match[2].replace(/\\\//g, '/').replace(/\\./g, '.');
var regexFlags = match[3];
newArgs.push(new RegExp(regexString, regexFlags));
newArgs.push(replacement);
lookingForSubstString = false;

@@ -76,0 +79,0 @@ } else {

{
"name": "shx",
"version": "0.1.3",
"version": "0.1.4",
"description": "Portable Shell Commands for Node",

@@ -5,0 +5,0 @@ "bin": {

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