Builtin Library
README.md
sourceEdits
Checks for authored source before it is written. candidate validates a
source's syntax and derives the checksum, size, kind and reference table that
storing it would state, without writing anything. folderChecksum derives a
folder asset's checksum from its leaves, newIdentity mints a UUID, and
checkWrite answers the canonical path a source write may take.
local sourceEdits = require("modules.api.engine.sourceEdits")
local checked = Json.decode(sourceEdits.candidate(path, text))
local guid = sourceEdits.newIdentity()