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

@std/console@0.224.0
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%
Downloads15/wk
Published2 years ago (0.224.0)

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

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

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