i-do-config
Version:
Provide app configuration as key-value pairs from multiple providers. Inspired by ASP.net Core
13 lines (12 loc) • 354 B
TypeScript
export declare class Helpers {
/**
* Sanitize a configuration key.
*
* Valid key chars are [-_:a-zA-Z0-9]. Invalid chars are discarded. Dash,
* Colon and underscore are converted to Colon which serves as a section
* separator.
*
* @param key
*/
static sanitizeConfigKey(key: string): string;
}