Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tui/src/utils/strings.ts>characterWidth

🦕 Deno module for creating Terminal User Interfaces
Latest
function characterWidth
import { characterWidth } from "https://deno.land/x/tui@2.1.11/src/utils/strings.ts";

Return width of given character

Originally created by sindresorhus: https://github.com/sindresorhus/is-fullwidth-code-point/blob/main/index.js

Parameters

character: string

Returns

number