Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Command line arguments parser and t3st example project
In your-node-app:
const clia = require('clia')
const opts = clia(process.argv.slice(2))
From the command line input:
node your-node-app -a -ab -cd hello
Yields
opts === {
a: true,
b: true,
c: true,
d: true
$$: ['hello']
}
cli a -b c --d --e=f
a: argument (untagged)
b: option (short)
c: argument (tagged)
d: option (long)
e: option (key-value)
f: argument (key-value)
-
--
key
in --key=value
value
in --key=value
--
is encountered, it is ignored. All subsequent inputs are treated as arguments.__proto__
to prevent prototype pollution--store=
Clone and run tests:
git clone https://github.com/devmachiine/clia.git
cd clia
npm i # optional
npm i -g nodemon # optional
npm test
To run live (aka hot-reload) tests:
# ctrl+c to exit.
npm start
GNU argument syntax conventions
getopts (therefore this IEEE doc)
2020.8.6
--
marks all subsequent inputs as argumentsFAQs
Command line arguments parser
The npm package clia receives a total of 1 weekly downloads. As such, clia popularity was classified as not popular.
We found that clia demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.