Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/string.ts>truncate

The best unofficial library of utilities for Deno applications
Go to Latest
function truncate
import { truncate } from "https://deno.land/x/dtils@2.6.0/string.ts";

Parameters

str: string
maxLength: number

Returns

string