promisified-properties
Version:
Handle .properties file via promisified and typed API
15 lines (14 loc) • 567 B
TypeScript
/**
* Escape the given string, based on the spec [defined by Java](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Properties.html).
*
* @param s - string to escape
* @returns Escaped string
*/
export declare function escape(s: string): string;
/**
* Escape the given string as property key, based on the spec [defined by Java](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Properties.html).
*
* @param s - string to escape
* @returns Escaped string
*/
export declare function escapeKey(key: string): string;