UNPKG

@nolebase/vitepress-plugin-git-changelog

Version:

A VitePress plugin that adds a changelog fetched from git to your documentation.

13 lines (12 loc) 660 B
export declare function renderMarkdown(markdownText?: string): string; export declare function renderCommitMessage(repoLink: string, msg: string): string; export declare function formatDistanceToNowFromValue(value: Date, localeName?: string): string; export declare function isStringArray(value: any): value is string[]; /** * Hashes a string using SHA-256 * * Official example by MDN: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest * @param {string} message - The message to be hashed * @returns {Promise<string>} - The SHA-256 hash of the message */ export declare function digestStringAsSHA256(message: string): Promise<string>;