@hyperlane-xyz/utils
Version:
General utilities and types for the Hyperlane network
9 lines • 605 B
TypeScript
export declare function toTitleCase(str: string): string;
export declare function toUpperCamelCase(string: string): string;
export declare function sanitizeString(str: string): string;
export declare function trimToLength(value: string, maxLength: number): string;
export declare function streamToString(stream: NodeJS.ReadableStream): Promise<string>;
export declare function errorToString(error: any, maxLength?: number): string;
export declare const fromHexString: (hexstr: string) => Buffer<ArrayBuffer>;
export declare const toHexString: (buf: Buffer) => string;
//# sourceMappingURL=strings.d.ts.map