UNPKG

ipfs-unixfs-importer

Version:

JavaScript implementation of the UnixFs importer used by IPFS

17 lines (13 loc) 619 B
/** * @packageDocumentation * * Layout functions allow customising the shape of final DAGs * * {@link https://dag.ipfs.tech} can be used to explore different conigurations. */ import type { InProgressImportResult } from '../index.js' export interface Reducer { (leaves: InProgressImportResult[]): Promise<InProgressImportResult> } export interface FileLayout { (source: AsyncIterable<InProgressImportResult> | Iterable<InProgressImportResult>, reducer: Reducer): Promise<InProgressImportResult> } export { balanced } from './balanced.js' export { flat } from './flat.js' export { trickle } from './trickle.js'