This package has been archived, and as such it is read-only.
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdWorks with
•JSR Score94%•This package works with DenoIt is unknown whether this package works with Bun

Downloads15/wk
•Published2 years ago (0.224.0)
DEPRECATED: Use @std/cli/unicode-width instead
Deprecated
Functions for console-related tasks such as TTY text layout.
Unicode width
unicodeWidth calculates the physical width of a string in a
TTY-like environment.
import { unicodeWidth } from "@std/console/unicode-width"; unicodeWidth("天地玄黃宇宙洪荒"); // 16
Built and signed on
GitHub Actions
Add Package
deno add jsr:@std/console
Import symbol
import * as console from "@std/console";
Import directly with a jsr specifier
import * as console from "jsr:@std/console";
Add Package
bunx jsr add @std/console
Import symbol
import * as console from "@std/console";