crypto-shortener
Version:
Shorten crypto hashes, addresses with ellipsis
16 lines • 502 B
TypeScript
type Options = {
length?: number;
prefixes?: string[];
};
/**
* Shortens the given string `arg` using ellipsis to remove the characters in
* the middle.
*
* When given an options object instead of a `string`, it will return a new
* function that will use those to shorten any given strings.
*
*/
export declare function shorten(arg: string, options?: Options): string;
export declare function shorten(arg: Options): (str: string) => string;
export {};
//# sourceMappingURL=index.d.ts.map