Skip to main content
Home

A small cli framework for Deno/Node.

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
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
82%
Published
11 months ago (0.0.15)
type alias Flags

Methods

value<T>(n: string): T

Returns the value of the flag

values<T>(n: string): T[]

Returns the values for the flag name specified (if there are multiple uses of the flag)

getFlag(n: string): Flag | null

Returns the configuration of the named flag

Performs a check that all required flags have been specified. If a flag is not specified, this will terminate the command with an error;

New Ticket: 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:@aricart/cobra

Import symbol

import { type Flags } from "@aricart/cobra";
or

Import directly with a jsr specifier

import { type Flags } from "jsr:@aricart/cobra";

Add Package

pnpm i jsr:@aricart/cobra
or (using pnpm 10.8 or older)
pnpm dlx jsr add @aricart/cobra

Import symbol

import { type Flags } from "@aricart/cobra";

Add Package

yarn add jsr:@aricart/cobra
or (using Yarn 4.8 or older)
yarn dlx jsr add @aricart/cobra

Import symbol

import { type Flags } from "@aricart/cobra";

Add Package

vlt install jsr:@aricart/cobra

Import symbol

import { type Flags } from "@aricart/cobra";

Add Package

npx jsr add @aricart/cobra

Import symbol

import { type Flags } from "@aricart/cobra";

Add Package

bunx jsr add @aricart/cobra

Import symbol

import { type Flags } from "@aricart/cobra";