Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasmfs

Node fs-like module backed by IndexedDB with a memory fallback when IndexedDB is unavailable.

Install

bun install

Test

bun test

Current API Coverage

Implemented (callback + delegated promises):

  • access / chmod
  • mkdir / readdir / readFile / writeFile / appendFile
  • rename / realpath / stat
  • unlink / rmdir / rm
  • copyFile / cp
  • truncate
  • open / close
  • read / write (buffer and string write forms)
  • fstat / ftruncate / fsync / fdatasync

Permissions model on virtual nodes:

  • read
  • write
  • execute

Sync API

Sync methods intentionally throw ENOTSUP with guidance to use fs.promises.*, because IndexedDB is asynchronous by nature.

Run Example

bun run index.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.