Questions tagged [minimist]
17 questions
9
votes
1 answer
CVE-2021-44906 Prototype Pollution in minimist
Github dependabot found potential security vulnerabilities in My dependencies.
Minimist <=1.2.5 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).
I don't know how to fix it. What should I do?

cat_yu
- 93
- 1
- 4
4
votes
2 answers
Moderate severity vulnerabilities due to minimist
I'm running into a huge number of vulnerabilities. There are 583 vulnerabilities all associated with the package minimist
My package.json is as such:
{
"name": "weather-wizard",
"version": "0.1.0",
"private": true,
"proxy":…

Devon Deason
- 125
- 2
- 8
4
votes
1 answer
How to print usage help using minimist?
Here is a simple example from here, which shows the very basics of the minimist command line argument parser:
var minimist = require('minimist')
var args = minimist(process.argv.slice(2), {
string: 'lang', // --lang xml
boolean:…

betontalpfa
- 3,454
- 1
- 33
- 65
4
votes
3 answers
What's the JavaScript syntax after the require() call?
The following code is from the Node.js course I am following:
var args = require("minimist")(process.argv.slice(2), { string: "name"});
I understand that a module is being imported, but I don't understand the second set of parentheses after the…

Sabuncu
- 5,095
- 5
- 55
- 89
3
votes
2 answers
Difficulty updating minimist with Angular 9
I've been doing an Angular 9 project for some time now. A while back, a warning popped up about a moderate security vulnarability with the minimist package. However, when I try to fix them with (sudo) npm audit fix, it can't fix these issues, and…

Luctia
- 322
- 1
- 5
- 17
1
vote
1 answer
Minimist vulnerability
We are facing critical vulnerability in minimist which is added as transitive dependency.
+-- ember-cli@3.24.0
| +-- bower-config@1.4.3
| | `-- minimist@0.2.1
We tried to resolve this using couple of methods recommended on multiple forums but still…

Gautam
- 3,276
- 4
- 31
- 53
1
vote
1 answer
No strings Minimist Node JS
With Minimist what is used to write out a sentence like this?
Name: Lea; Age: 22; Address: UserAdress
So far I have tried with --name and --a. Hard to find information imo
var argv = require('minimist')(process.argv.slice(0,…

l14045
- 63
- 8
1
vote
2 answers
Node.js minimist security issue even with v1.2.5
After installing express-handlebars and running "npm audit", I'm getting a "low severity vulnerability" warning for minimist. npm says: "Patched in >=0.2.1 <1.0.0 || >=1.2.3"
https://npmjs.com/advisories/1179
So I upgraded to minimist v1.2.5 but I'm…

mike
- 1,135
- 4
- 22
- 39
1
vote
1 answer
passing string with spaces to node cli-parser
var minimist = require("minimist")
const a = minimist(`executable --param "a b"`.split(' '))
console.log(a)
https://runkit.com/embed/57837xcuv5v0
actual output:
Object {_: ["executable", "b\""], param: "\"a"}
expected output:
Object {_:…

Stav Alfi
- 13,139
- 23
- 99
- 171
1
vote
0 answers
Running the same code with different URL in testcafe
I am using minimist to run the same testcafe code for different env like a test, stage, Prod. however when the URL is hit it's saying 500 internal error. If I am hitting the Url without using minimist then it's working fine. Please tell me what am I…

TS0306
- 177
- 12
0
votes
0 answers
How to pass actual values to minimist instead of key-value?
https://www.npmjs.com/package/minimist
For some keys I want to be able pass actual variables of them instead:
$ node my_script.js --var1 a --var2 b --var3 c
===>
$ node my_script.js --var1 a --b --var3 c
$ node my_script.js --var1 a --b1 --var3 c
$…

mondichuk
- 77
- 1
- 5
0
votes
2 answers
Can't open VS Code on Ubuntu
Since today, I can't open vs code on both App shortcut and Terminal.
When I try to run any command related to VS Code like code, code --version and etc. I get this error:
Loading "minimist" failed
Error: EIO: i/o error, read
at Object.readSync…

Rovshen Tagangylyjov
- 63
- 1
- 7
0
votes
0 answers
minimist failing in testcafe
I am using minimist to run different environment for my TestSuite using test cafe however i am facing some issues
I have the following example.ts file
import * as minimist from 'minimist';
const args = minimist(process.argv.slice(2))
const…

TS0306
- 177
- 12
0
votes
1 answer
How to fix webpack-pwa-manifest vulnerability?
How to fix webpack-pwa-manifest@4.2.0 and minimist vulnerability. I tried by deleting node/modules and package-lock.json and do a fresh npm install but I have the same issue, any feedback is really appreciated.
Attached screenshots.

Fernando
- 25
- 5
0
votes
1 answer
Minimist js library not returning key-value pair
This is the code:
var minimist = require('minimist')
const args = minimist(process.argv.slice(2))
console.log(args)
In the terminal, I type: npm start -a abc -b bbc
$ npm start -a abc -b bbc
{ _: [ 'abc', 'bbc' ] }
This is what I expected:
{ _:…

Kumar Abhirup
- 197
- 4
- 16