Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/formats/util.ts

Storage for private, distributed, offline-first applications.
Go to Latest
import * as earthstar from "https://deno.land/x/earthstar@v10.0.2/src/formats/util.ts";

Functions

Given an array of format names, and an array of IFormat, returns an array of IFormat restricted to those with matching names.

Returns an object with format names as keys, and corresponding IFormat as values.

Returns the default formats if no formats are given.

Returns the default format if no formats are given.