UNPKG

@itsmworkbench/utils

Version:

The usual utility functions

15 lines (14 loc) 822 B
import { NameAnd } from "@laoban/utils"; export declare function lowercaseFirstLetter(str: string): string; export declare function uppercaseFirstLetter(str: string): string; export declare function toCamelCase(str: string): string; export declare function escapeForSql(str: string): string; export interface HasEscape { escape?: boolean; } export declare function escapeSqlParameters(sql: string, lookupMap: Record<string, HasEscape>): string; export declare function extractSqlString(query?: string): string[]; export declare function splitAndCapitalize(input: string | undefined): string; export declare function fullExtension(path: string): string; export declare function simpleTemplate(template: string, data: NameAnd<any>): string | undefined; export declare function withoutFirstSegment(path: string): string;