Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@warren-bank/node-process-argv

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@warren-bank/node-process-argv - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

13

lib/grep_argv.js

@@ -66,2 +66,15 @@ const fs = require('fs')

if (flag_opts && flag_opts["regex"]) {
try {
let flags = (typeof flag_opts["regex"] === 'string') ? flag_opts["regex"] : undefined
val = new RegExp(val, flags)
}
catch(e) {
if (throw_error_if_value_not_acceptable) {
throw new Error(`Option "${args[index]}" requires a well-formed regular expression pattern.\nYou entered: "${val_verbatim}"\n\nError message from regex parser:\n${e.message}`)
}
val = ""
}
}
if (flag_opts && flag_opts["file"]) {

@@ -68,0 +81,0 @@ try {

2

package.json
{
"name": "@warren-bank/node-process-argv",
"version": "1.0.0",
"version": "1.1.0",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "description": "An extremely lightweight node.js library to process command-line arguments.",

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