Skip to content

A crappy implementation of node:fs for the web using IndexDB wrapped by dexie

Notifications You must be signed in to change notification settings

obillekyle/fs-web-ts

Repository files navigation

fs-web-ts

A crappy implementation of node:fs for the web using IndexDB wrapped by dexie.

Caution

This is not a production-ready implementation of node:fs for the web. It's probably slow and has full of bugs. Please use it at your own risk.

Progress

Note

All of these are made from scratch and only based on node:fs's documentation. This code is not fully tested. If you find any bugs please let me know.

  • class FileHandle

    • readonly fd
    • static async from()
    • async getFile()
    • async appendFile()
    • async chown()
    • async chmod()
    • async writeFile()
    • createReadStream()
    • createWriteStream()
    • async dataSync()
    • async sync()
    • async readFile()
    • async readLines()
    • async stat()
    • async truncate()
    • async utimes()
    • async writeFile()
    • async close()
    • async write()
    • async writev()
    • async readv()
  • class Stats | BigIntStats

    • static async from()
    • isFile()
    • isDirectory()
    • isSymbolicLink()
    • isBlockDevice()
    • isCharacterDevice()
    • isFIFO()
    • readonly size
    • readonly atime
    • readonly mtime
    • readonly ctime
    • readonly birthtime
    • readonly atimeMs
    • readonly mtimeMs
    • readonly ctimeMs
    • readonly birthtimeMs
    • readonly uid,
    • readonly gid,
    • readonly mode
  • class StatsFs | BigIntStatsFs

    • static async from()
    • readonly type
    • readonly bsize
    • readonly blocks
    • readonly bfree
    • readonly bavail
    • readonly files
    • readonly ffree
  • class Dir

    • static async from()
    • close()
    • closeSync()
    • async close()
    • read()
    • readSync()
    • async read()
    • async Symbol.asyncIterator()
  • class Dirent

    • static async from()
    • isBlockDevice()
    • isCharacterDevice()
    • isFIFO()
    • isFile()
    • isDirectory()
    • isSymbolicLink()
    • readonly name
    • readonly parentPath
    • readonly path
  • fs/core

    • access()
    • rename()
    • truncate()
    • ftruncate()
    • chown()
    • lchown()
    • fchown()
    • chmod()
    • lchmod()
    • fchmod()
    • stat()
    • lstat()
    • fstat()
    • statfs()
    • link()
    • symlink()
    • readlink()
    • realpath()
    • unlink()
    • rmdir()
    • rm()
    • mkdir()
    • mkdtemp()
    • readdir()
    • close()
    • open()
    • utimes()
    • futimes()
    • fsync()
    • write()
    • read()
    • readFile()
    • writeFile()
    • appendFile()
    • watchFile()
    • watch()
    • unwatch()
    • unwatchFile()
    • copyFile()
    • opendir()
    • exists()
    • cp()
    • renameSync()
    • truncateSync()
    • ftruncateSync()
    • chownSync()
    • fchownSync()
    • chmodSync()
    • fchmodSync()
    • statSync()
    • lstatSync()
    • lchmodSync()
    • lchownSync()
    • fstatSync()
    • statfsSync()
    • linkSync()
    • symlinkSync()
    • readlinkSync()
    • realpathSync()
    • unlinkSync()
    • rmdirSync()
    • rmSync()
    • mkdirSync()
    • mkdtempSync()
    • readdirSync()
    • closeSync()
    • openSync()
    • utimesSync()
    • futimesSync()
    • fsyncSync()
    • writeSync()
    • readSync()
    • readFileSync()
    • writeFileSync()
    • appendFileSync()
    • existsSync()
    • copyFileSync()
    • opendirSync()
    • cpSync()
    • async openAsBlob()
  • fs/promises

    • async access()
    • async copyFile()
    • async open()
    • async rename()
    • async rmdir()
    • async rm()
    • async mkdir()
    • async stat()
    • async lstat()
    • async statfs()
    • async link()
    • async unlink()
    • async chmod()
    • async chown()
    • async utimes()
    • async realpath()
    • async mkdtemp()
    • async writeFile()
    • async appendFile()
    • async readFile()
    • async opendir()
    • async watch()
    • async cp()

About

A crappy implementation of node:fs for the web using IndexDB wrapped by dexie

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages