UNPKG

@types/escape-quotes

Version:
35 lines (27 loc) 1.09 kB
# Installation > `npm install --save @types/escape-quotes` # Summary This package contains type definitions for escape-quotes (https://www.npmjs.com/package/escape-quotes). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/escape-quotes. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/escape-quotes/index.d.ts) ````ts /** * Escape `'` with `\\` * @param input the input string */ declare function escapeQuote(input: string): string; /** * Escape the given character with the given escape character * @param input the input string * @param character the character to escape (e.g. `'`) * @param escape_character the character to escape with (e.g. `\\`) */ declare function escapeQuote(input: string, character: string, escape_character: string): string; export = escapeQuote; ```` ### Additional Details * Last updated: Mon, 26 Aug 2024 05:07:41 GMT * Dependencies: none # Credits These definitions were written by [Amin Yahyaabadi](https://github.com/aminya).