0.1.2 • Published 2 months ago

@webufs/webufs-browser v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Webufs browser-side usable js library.

This projet builds the @webufs/webufs package as an iife js library, which is directly usable in the browser.

Note: @webufs/webufs-idb is included in the build.

Usage

<!-- use unpkg -->
<script src="https://www.unpkg.com/@webufs/webufs-browser@latest/build/webufs.min.js"></script>
<!-- or download as a static file on your server -->
<script src="webufs.min.js"></script>

and then

// Yes, it's async
const ctx = await webufs.createDefaultContext()

// Mount IndexedDB-backed filesystem at '/idb'
ctx.getVFS().registerFSType(webufs.IDBFS)
await ctx.mkdir('idb')
await ctx.mount('idbfs', '/idb')
await ctx.chdir('idb')

// ... now play with 'ctx'

For details on how to use it, please read the document of the core package @webufs/webufs and @webufs/webufs-idb

0.1.2

2 months ago

0.1.1

2 months ago

0.1.0

3 months ago

0.0.11

3 months ago

0.0.10

3 months ago

0.0.8

3 months ago

0.0.6

3 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

6 months ago