oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.07k stars 2.67k forks source link

File System API for bun like node:fs #13225

Open KaiCodesWithGithub opened 1 month ago

KaiCodesWithGithub commented 1 month ago

What is the problem this feature would solve?

Missing file system API.

What is the feature you are proposing to solve the problem?

Built in File System API like the node:fs library in node.

What alternatives have you considered?

An alternative is node:fs but isn't bun-native.

Jarred-Sumner commented 1 month ago

You can use Bun.write, but yeah we need to do the rest of them.

KaiCodesWithGithub commented 1 month ago

You can use Bun.write, but yeah we need to do the rest of them.

And Bun.file() but yeah, no where near enough.

yus-ham commented 1 month ago

more agree to have FS API like flysystem or flydrive. it have a plugin system and one or more built-in plugin for interact with local FS and popular cloud storage