
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
valon-args
Advanced tools
Typescript node argument parser with strong types.
# npm
npm install valon-args
# Yarn
yarn add valon-args
# Pnpm
pnpm add valon-args
import { cliArgs } from 'valon-args'
const options = cliArgs({
name: { type: 'string', required: true },
retries: { type: 'number' },
force: { type: 'boolean' },
})
// All args are now typed and validated.
options.name // string
options.retires // number | undefined
options.force // boolean | undefined
import { cliArgs } from 'valon-args'
// Console args are automaticly parsed fron the terminal.
const args = cliArgs({ name: { type: 'string' } })
node ./example.js --string=foo // 'foo'
node ./example.js --string="foo bar" // 'foo bar'
node ./example.js --string=foo --string=bar // ['foo', 'bar']
node ./example.js --string="foo bar" --string="bar baz" // ['foo bar', 'bar baz']
node ./example.js --string "foo bar" foobar "bar baz" // ['foo bar', 'foobar', 'bar baz']
node ./example.js --number=1 // 1
node ./example.js --number=1 --number=2 // [1, 2]
node ./example.js --force // true
node ./example.js --force=true // true
node ./example.js --force=false // false
node ./example.js --force=1 // true
node ./example.js --force=0 // false
node ./example.js // undefined
FAQs
Typescript node argument parser with strong types.
The npm package valon-args receives a total of 136 weekly downloads. As such, valon-args popularity was classified as not popular.
We found that valon-args 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.
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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.