Documentation
    Preparing search index...

    Function serialize

    • Serialize ACL state to a JSON string.

      Pure function — no I/O. The persistence adapter in @kehto/shell uses this to write state to localStorage or other backends.

      Parameters

      Returns string

      JSON string representation

      const json = serialize(state);
      localStorage.setItem('napplet:acl', json);