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

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

DEPRECATED: Use @std/cli/unicode-width instead

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

Use std/cli instead. This module will be removed once the Standard Library migrates to JSR.

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
View transparency log

Add Package

deno add jsr:@std/console

Import symbol

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

---- OR ----

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