Cerbos JavaScript SDK
    Preparing search index...

    Interface File

    A file in a store.

    interface File {
        contents: Uint8Array;
        path: string;
    }
    Index

    Properties

    Properties

    contents: Uint8Array

    The contents of the file.

    Use bytesToString and stringToBytes to convert the contents to or from a string, and parsePolicy and serializePolicy to programmatically manipulate policies.

    path: string

    The path of the file.