Skip to content

craft-hub / computeDocumentRevision

Function: computeDocumentRevision() ​

computeDocumentRevision(rawContent): string

Defined in: packages/craft-hub/src/document-spaces.ts:308

Compute the SHA-256 optimistic concurrency revision of a UTF-8 document.

Parameters ​

rawContent ​

string

Returns ​

string

Released under the MIT License.