@cloudos/fs
v1.1.27
Published
Node-style file system API in browser, using Local Storage, IndexedDB, Gitee repository, more backends can be extended.
Downloads
93
Readme
About The Project
Node-style file system API in browser, using Local Storage, IndexedDB, Gitee repository, more backends can be extended.
Built With
- typescript
- browserfs
- lightning-fs
- @cloudos/gitee-fs
Getting Started
- Install with
npm i @cloudos/fs
oryarn add @cloudos/fs
. - Call the API just like in node;
import { fs } from "@cloudos/fs";
fs.readdir("/", console.log);
Use In Browser
<script src="https://cdn.jsdelivr.net/npm/@cloudos/fs/dist/fs.iife.js"></script>
<script>
var fs = FS.fs;
fs.readdir("/", console.log);
</script>
License
MIT License.