
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@bomb.sh/args
Advanced tools
A <1kB library for parsing CLI flags. Inspired by Deno's `std/cli` [`parseArgs`](https://github.com/denoland/std/blob/main/cli/parse_args.ts) module.
@bomb.sh/argsA <1kB library for parsing CLI flags. Inspired by Deno's std/cli parseArgs module.
đ€ very small
đ very simple
đ very fast (beats node:util)
đ strongly typed
Basic usage does not require any configuration.
import { parse } from "@bomb.sh/args";
// my-cli build --bundle -rf --a value --b=value --c 1
const argv = process.argv.slice(2);
const args = parse(argv);
console.log(args);
// { _: ['build'], bundle: true, r: true, f: true, a: "value", b: "value", c: 1 }
Parsing can be configured to ensure arguments are coerced to specific types, which enhances type safety.
const args = parse(argv, {
default: { a: 1, b: 2, c: "value" },
alias: { h: "help" },
boolean: ["foo", "bar"],
string: ["baz", "qux"],
array: ["input"],
});
mri x 1,650,986 ops/sec ±0.32% (97 runs sampled)
@bomb.sh/args x 1,407,191 ops/sec ±0.38% (99 runs sampled)
minimist x 383,506 ops/sec ±0.28% (99 runs sampled)
node:util x 320,953 ops/sec ±0.35% (98 runs sampled)
yargs-parser x 31,874 ops/sec ±1.32% (92 runs sampled)
This package was previously published as ultraflag up until v0.3.0, when it was renamed to @bomb.sh/args.
FAQs
A <1kB library for parsing CLI flags. Inspired by Deno's `std/cli` [`parseArgs`](https://github.com/denoland/std/blob/main/cli/parse_args.ts) module.
The npm package @bomb.sh/args receives a total of 929 weekly downloads. As such, @bomb.sh/args popularity was classified as not popular.
We found that @bomb.sh/args demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: whatâs affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.