
Product
Socket Threat Intel Now Shows Which Malware Campaigns Were Blocked or Detected
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.
Argentum is a unified command line arguments parser. It parses arguments into JS values boolean, number, date, string or array of values. Argentum has no schema like other parsers it just try to parse all passed values.
It has several rules to parse values:
--name, --name=value, --name[] and --name[]=value.--some-name becomes someName.--bool mean true.--arr=1 --arr[] has empty array with name arr.Note that parsed values pull out from passed array.
Argentum converts command line arguments into appropriate JS types.
node app.js --host=localhost --port=8080 --dirs[] public build
Result of parsing is:
{
host: 'localhost',
port: 8080,
dirs: ['public', 'build']
}
var argentum = require('argentum');
// Parsing
argentum.parse(['--hello=world']); // -> {hello: "world"}
// Splicing
var args = ['-x', 'value', '-d'];
argentum.parse(args); // -> {a: true, b: true}
args; // -> ['value']
Parsing schema
| Cli | JavaScript |
|---|---|
-v | {v: true} |
--hello=world | {hello: 'world'} |
--number=1 | {number: 1} |
--bool | {bool: true} |
--a[] 1 2 | {a: [1,2]} |
--a[]=1 --a[]=2 | {a: [1,2]} |
Package require interface.
Parse array of strings and return an object of properties.
Parse string value to match true, false or number patterns otherwise return
string.
Split array into two arrays with double hyphen as separator. Limit should match count of found separators.
FAQs
Command line arguments parser
The npm package argentum receives a total of 1 weekly downloads. As such, argentum popularity was classified as not popular.
We found that argentum demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.

Security News
Fixes for eMudhra and Brotli are out. Getting them everywhere they’re needed means tracking down bundled libraries, runtimes, and certificate stores.

Threat Research
/Security News
Socket uncovered secret-stealing workflows that ran in LiteLLM’s GitHub repository 11 days before the supply chain attack on PyPI and Docker.