Skip to main content
Module

x/value_schema/dist-deno/libs/string.ts>toHalfWidthAll

simple, easy-to-use, and declarative input validator; supports Node.js, TypeScript, Deno, and Bun
Go to Latest
function toHalfWidthAll
import { toHalfWidthAll } from "https://deno.land/x/value_schema@v3.1.2/dist-deno/libs/string.ts";

convert full-width to half-width

Parameters

str: string

string to convert; ALL ELEMENTS MUST BE FULL-WIDTH!

Returns

string

half-width string