close
Skip to main content

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

Works with
This package works with DenoIt is unknown whether this package works with Bun
This package works with Deno
It is unknown whether this package works with Bun
JSR Score94%
License
MIT
Downloads18,492/wk
Publisheda month ago (1.0.29)

Tools for creating interactive command line tools

Functions

f
unicodeWidth(str: string): number

Calculate the physical width of a string in a TTY-like environment. This is useful for cases such as calculating where a line-wrap will occur and underlining strings.

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 mod from "@std/cli/unicode-width";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/cli/unicode-width";