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

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

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

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 Score
94%
Published
10 months ago (0.224.0)
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
View transparency log

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

npx jsr add @std/flags

Import symbol

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

Add Package

yarn dlx jsr add @std/flags

Import symbol

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

Add Package

pnpm dlx 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";