UNPKG

@technobuddha/library

Version:
18 lines (17 loc) 616 B
export declare type Options = { /** The quote character(s) to use */ quote?: string; /** Character sequence to replace the quote mark within the text, or function to return the properly escaped text */ escape?: string | ((input: string) => string); }; /** * Surround text with quotes * * @param input The text to surround * @param __namedParameters see {@link Options} * @default quote double-quote (") * @deffaultValue escape {@link escapeJs} * @returns text surrounded by quotes */ export declare function quote(input: string, { quote: q, escape }?: Options): string; export default quote;