1.0.21 • Published 2 years ago
@cloudos/gitee-fs v1.0.21
Built With
- typescript
- @clodos/gitee-api
Getting Started
- Install this library
npm i @cloudos/gitee-fs
oryarn add @cloudos/gitee-fs
. - Using the fs api in your code;
import {GiteeFS} from '@cloudos/gitee-fs';
const setup=async()=>{
await GiteeFS.init({accessToken: "you gitee access token"})
const {fs,fsPromises}=await GiteeFS.import();
(window as any).fs=fs;
(window as any).fsPromises=fsPromises;
// now you can use with "fs.readdir(path,console.log)" etc.
}
setup();
Once the GiteeFs is initialized, metadata like owner
and repo
and accessToken
will be stored in the indexedDB. If you need to reconfigure the metadata, using:
// A prompt box will pup up for inputing metadata.
GiteeFS.config();
Usage
Check the apis defined in the code (lib/index.d.ts).
License
MIT License.
1.0.19
2 years ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago