mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 18:28:02 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
import type { AnyString } from '../types.js';
|
||||
/**
|
||||
* @name stringShorten
|
||||
* @summary Returns a string with maximum length
|
||||
* @description
|
||||
* Checks the string against the `prefixLength`, if longer than double this, shortens it by placing `..` in the middle of it
|
||||
* @example
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* import { stringShorten } from '@pezkuwi/util';
|
||||
*
|
||||
* stringShorten('1234567890', 2); // => 12..90
|
||||
* ```
|
||||
*/
|
||||
export declare function stringShorten(value: AnyString, prefixLength?: number): string;
|
||||
Reference in New Issue
Block a user