Skip to main content
Module

x/automerge/index.ts>next.save

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Latest
function next.save
import { next } from "https://deno.land/x/automerge@2.2.2/index.ts";
const { save } = next;

Export the contents of a document to a compressed format

Parameters

doc: Doc<T>
  • The doc to save

The returned bytes can be passed to load or loadIncremental

Returns

Uint8Array