UNPKG
@amxdev/truncate-text
Version:
latest (1.0.0)
1.0.0
Truncate long text to a maximum length with ellipsis.
@amxdev/truncate-text
/
dist
/
index.d.ts
2 lines
(1 loc)
•
79 B
TypeScript
View Raw
1
2
export
declare
function
truncateText
(
text
:
string
,
maxLength
:
number
):
string
;