deno.land / std@0.224.0 / console / mod.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.// This module is browser compatible.
/** * Functions for console-related tasks such as TTY text layout. * * ## Unicode width * * {@linkcode unicodeWidth} calculates the physical width of a string in a * TTY-like environment. * * ```ts * import { unicodeWidth } from "https://deno.land/std@$STD_VERSION/console/unicode_width.ts"; * * unicodeWidth("天地玄黃宇宙洪荒"); // 16 * ``` * * @deprecated Use {@link https://jsr.io/@std/cli | std/cli} instead. This * module will be removed once the Standard Library migrates to * {@link https://jsr.io/ | JSR}. * * @module */
export * from "./unicode_width.ts";
std

Version Info

Tagged at
3 weeks ago