Skip to content

Commit

Permalink
better example
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumer committed Oct 29, 2024
1 parent d05c9e5 commit ade1344
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ import { configure, InMemory } from '@zenfs/core'
import { IndexedDB } from '@zenfs/dom'
import { Zip } from '@zenfs/zip'

const res = await fetch('mydata.zip')
await configure({
mounts: {
'/zip': { backend: Zip, data: await res.arrayBuffer() },
'/zip': { backend: Zip, data: await await fetch('mydata.zip').then(r => r.arrayBuffer()) },
'/tmp': InMemory,
'/home': IndexedDB
}
Expand Down

0 comments on commit ade1344

Please sign in to comment.