main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
594 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * Date: 2015-10-05
|
---|
3 | * Author: Kasper Søfren <soefritz@gmail.com> (https://github.com/kafoso)
|
---|
4 | *
|
---|
5 | * A truncation feature, where the ellipsis will be placed at a section within
|
---|
6 | * the URL making it still somewhat human readable.
|
---|
7 | *
|
---|
8 | * @param {String} url A URL.
|
---|
9 | * @param {Number} truncateLen The maximum length of the truncated output URL string.
|
---|
10 | * @param {String} ellipsisChars The characters to place within the url, e.g. "...".
|
---|
11 | * @return {String} The truncated URL.
|
---|
12 | */
|
---|
13 | export declare function truncateSmart(url: string, truncateLen: number, ellipsisChars?: string): string;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.