dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
19 lines (18 loc) • 914 B
TypeScript
export interface FileNamingOptions {
/** The name of the entity (function, action, widget, etc.) to be converted into a file name. */
name: string;
/** The suffix to be appended to the file name. */
suffix: string;
/** A flag indicating whether nested directories are allowed in the file name. */
allowNested?: boolean;
/** Flag that indicates whether the filename should be formatted to a kebab case */
overrideNameWithKebabCase?: boolean;
}
/** Converts the provided name into a file name by appending the provided suffix and optionally allowing nested directories. */
export declare function appendFileExtension({ name, suffix, allowNested, }: FileNamingOptions): string;
/**
* Unifies the passed url.
*/
export declare function sanitizeUrl(url: string): string;
/** Sanitize folder name to be OS safe */
export declare function extractDirectoryFromName(name: string): string;