[proxy] jsr.io← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
Skip to main content
Home

@std/cli@1.0.28
Built and signed on GitHub Actions

Works with
This package works with DenoIt is unknown whether this package works with Bun
JSR Score94%
License
MIT
Downloads37,736/wk
Published2 weeks ago (1.0.28)

Tools for creating interactive command line tools

Tools for creating interactive command line tools.

import { parseArgs } from "@std/cli/parse-args";
import { assertEquals } from "@std/assert";

// Same as running `deno run example.ts --foo --bar=baz ./quux.txt`
const args = parseArgs(["--foo", "--bar=baz", "./quux.txt"]);
assertEquals(args, { foo: true, bar: "baz", _: ["./quux.txt"] });
Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/cli

Import symbol

import * as cli from "@std/cli";
or

Import directly with a jsr specifier

import * as cli from "jsr:@std/cli";