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

x/simple_utility/src/text.ts>fixWidth

Useful snippet collection.
Go to Latest
function fixWidth
import { fixWidth } from "https://deno.land/x/simple_utility@v1.4.4/src/text.ts";

Convert half-width Japanese kana to full-width and full-width alphanumeric symbols to half-width.

Examples

Example 1

const text = "1+1=2";
const format = fixWidth(text);

Parameters

data: string

Returns

string