UNPKG

@ztl-uwu/nuxt-content

Version:

Write your content inside your Nuxt app

28 lines (27 loc) 764 B
export declare const describeId: (id: string) => { _source: string | undefined; _path: string; _extension: string | undefined; _file: string; _basename: string; }; declare const _default: ContentTransformer; export default _default; /** * Generate path from file name * * @param path file full path * @returns generated slug */ export declare const generatePath: (path: string, { forceLeadingSlash, respectPathCase }?: { forceLeadingSlash?: boolean | undefined; respectPathCase?: boolean | undefined; }) => string; /** * generate title from file path */ export declare const generateTitle: (path: string) => string; /** * Clean up special keywords from path part */ export declare function refineUrlPart(name: string): string;