UNPKG

platform-folders

Version:

Module to get platform dependent folders (e.g. documents, downloads, config)

22 lines (21 loc) 1.08 kB
export declare function getHomeFolder(): string; export declare function getCacheFolder(): string; export declare function getStateFolder(): string; export declare function getConfigHome(): string; export declare function getDataHome(): string; export declare function getDataFolders(): string[]; export declare function getConfigFolders(): string[]; export declare function getDesktopFolder(): string; export declare function getDocumentsFolder(): string; export declare function getDownloadsFolder(): string; export declare function getPicturesFolder(): string; export declare function getVideosFolder(): string; export declare function getMusicFolder(): string; export declare function getSaveGamesFolder(): string; /** * Returns path for type or undefined if name is invalid * @param name folder type (see README) */ declare type Folder = "home" | "appData" | "appdata" | "userData" | "desktop" | "documents" | "downloads" | "music" | "pictures" | "videos" | "cache" | "savegames" | "state"; export default function getPath(name: Folder): string | undefined; export {};