Skip to main content
Home
This package has been archived, and as such it is read-only.

@std/flags@0.224.0
Built and signed on GitHub Actions

Works with
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score94%
Downloads158/wk
Published2 years ago (0.224.0)

DEPRECATED: Use @std/cli/parse-args instead

Deprecated

Use parseArgs instead. This module will be removed once the Standard Library migrates to JSR.

Command line arguments parser based on minimist.

This module is browser compatible.

Examples

Example 1

import { parse } from "@std/flags";

console.dir(parse(Deno.args));
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/flags

Import symbol

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

Import directly with a jsr specifier

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

Add Package

pnpm i jsr:@std/flags
or (using pnpm 10.8 or older)
pnpm dlx jsr add @std/flags

Import symbol

import * as flags from "@std/flags";

Add Package

yarn add jsr:@std/flags
or (using Yarn 4.8 or older)
yarn dlx jsr add @std/flags

Import symbol

import * as flags from "@std/flags";

Add Package

vlt install jsr:@std/flags

Import symbol

import * as flags from "@std/flags";

Add Package

npx jsr add @std/flags

Import symbol

import * as flags from "@std/flags";

Add Package

bunx jsr add @std/flags

Import symbol

import * as flags from "@std/flags";