Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

314
Views
Does double dash work differently for npm?

I was looking into understanding how -- works recently when I've seen it used on command lines and I learned that it separates a command and it's options from other arguments, so that the command knows not to expect any further options after the -- e.g.

 grep -- --hello data.txt

however I was reading some npm articles and I came across this command in a package.json file:

"lint:fix": "npm run lint -- --fix",

What I'm confused about here is that the --fix option is being passed after the double dashes, isn't this against how the -- syntax is meant to work?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!