@cypsela/browser-source
    Preparing search index...

    @cypsela/browser-source

    browser-source

    WICG’s FileSystemEntry and FileSystemHandle as a sources for @helia/unixfs

    npm i @cypsela/browser-source

    live: https://browser-source.cypsela.eth.limo

    source: ./example

    Api docs: cypsela.github.io/browser-source

    import { fsEntrySource, BrowserFsItemSourceOptions } from '@cypsela/browser-source'
    import { createHelia } from 'helia'
    import { unixfs } from '@helia/unixfs'

    const helia = await createHelia()
    const fs = unixfs(helia)

    const options: BrowserFsItemSourceOptions = { ... }

    for await (const _ of fs.addAll(fsEntrySource(<FileSystemEntry>, options))) {}
    import { fsHandleSource, BrowserFsItemSourceOptions } from '@cypsela/browser-source'
    import { createHelia } from 'helia'
    import { unixfs } from '@helia/unixfs'

    const helia = await createHelia()
    const fs = unixfs(helia)

    const options: BrowserFsItemSourceOptions = { ... }

    for await (const _ of fs.addAll(fsHandleSource(<FileSystemHandle>, options))) {}