MCPcopy
hub / github.com/marktext/marktext / getContentHash

Function getContentHash

packages/desktop/src/renderer/src/util/fileSystem.ts:60–61  ·  view source on GitHub ↗
(content: string | Uint8Array | ArrayBuffer)

Source from the content-addressed store, hash-verified

58}
59
60export const getContentHash = (content: string | Uint8Array | ArrayBuffer): Promise<string> =>
61 getHash(content, 'utf8', 'sha1')
62
63export const moveImageToFolder = async(
64 pathname: string,

Callers 1

moveImageToFolderFunction · 0.85

Calls 1

getHashFunction · 0.85

Tested by

no test coverage detected