Skip to main content
Module

x/text_clipper/mod.ts

Fast and correct clip functions for HTML and plain text
Latest
import * as textClipper from "https://deno.land/x/text_clipper@2.1.0/mod.ts";

Functions

Clips a string to a maximum length. If the string exceeds the length, it is truncated and an indicator (an ellipsis, by default) is appended.