UNPKG

@technobuddha/library

Version:
18 lines (17 loc) 586 B
declare type Options = { /** The quote character(s) to use */ quote?: string; /** Character sequence to replace the quote mark within the text */ escape?: (string | ((input: string) => string)); }; /** * Remove surrounding quotes from text * * @param input The text to surrounded by quotes * @param __namedParameters see {@link Options} * @default quote double-quote (") * @default escape unescapeJS * @returns the unescaped text with quotes removed */ export declare function unquote(input: string, { quote, escape }?: Options): string; export default unquote;