mise API - v0.0.0
    Preparing search index...

    Function pluginIndexArchive_read

    • Reads an index from archive bytes.

      A single top folder (GitHub's FNNDSC-chris-plugins-<sha>/) is the root; the pax global header's comment is the commit.

      Parameters

      • bytes: Buffer

        The archive, gzipped or plain.

      • source: string

        The source word, for the index's source and label.

      Returns PluginIndex

      The index.

      When the archive is unreadable, an entry's path is unsafe, or the schema it carries is not JSON.

      const index: PluginIndex = pluginIndexArchive_read(readFileSync('index.tar.gz'), 'FNNDSC/chris-plugins@main');