Open Im-Beast opened 1 year ago
this list should be expanded upon on the fly
Sable.
fs
readFile
Uint8Array
readTextFile
string
writeFile
writeTextFile
removeFile
removeDirectory
copyFile
copyDirectory
moveFile
moveDirectory
makeDirectory
makeFile
makeTempDirectory
/tmp
makeTempFile
watch
io
read
write
stdin
stdout
stderr
testing
test
bench
Things that are yet to be discussed:
Sable.fs.File
Sable.io.{Stdin, Stdout, Stderr}
Sable.io.{write, writeSync, read, readSync}
Currently planned API's:
this list should be expanded upon on the fly
Sable.
fs
readFile
– read file and returnUint8Array
readTextFile
– read file and returnstring
writeFile
– write file usingUint8Array
writeTextFile
– write file usingstring
removeFile
- delete fileremoveDirectory
- delete directorycopyFile
- copy filecopyDirectory
- copy directorymoveFile
- move/rename filemoveDirectory
- move/rename directorymakeDirectory
- create a new directorymakeFile
- create a new filemakeTempDirectory
- create a new temporary directory in/tmp
makeTempFile
- create a new temp file in/tmp
watch
- create iterable which yields changes in file systemio
read
– read from resource id into givenUint8Array
write
– async write to resource id usingUint8Array
stdin
– interface for working with standard inputstdout
– interface for working with standard outputstderr
– interface for working with standard error outputtesting
test
- test runnerbench
- benchmark runner