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.
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.
-
-
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()
-
-
-
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
-
-
-
static async from()
-
readonly type
-
readonly bsize
-
readonly blocks
-
readonly bfree
-
readonly bavail
-
readonly files
-
readonly ffree
-
-
-
static async from()
-
close()
-
closeSync()
-
async close()
-
read()
-
readSync()
-
async read()
-
async Symbol.asyncIterator()
-
-
-
static async from()
-
isBlockDevice()
-
isCharacterDevice()
-
isFIFO()
-
isFile()
-
isDirectory()
-
isSymbolicLink()
-
readonly name
-
readonly parentPath
-
readonly path
-
-
-
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()
-
-
-
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()
-