UNPKG

tar-iterator

Version:

Extract contents from tar archive type using an iterator API using streams or paths. Use stream interface and pipe transforms to add decompression algorithms

6 lines (5 loc) 335 B
import type Iterator from './TarIterator.js'; import type { Entry, EntryCallback } from './types.js'; export type TarNext = () => undefined; export type NextCallback = (error?: Error, entry?: Entry, next?: TarNext) => undefined; export default function nextEntry(next: TarNext, iterator: Iterator, callback: EntryCallback): undefined;