1.0.21 • Published 3 years ago

@cloudos/gitee-fs v1.0.21

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Built With

  • typescript
  • @clodos/gitee-api

Getting Started

  1. Install this library npm i @cloudos/gitee-fs or yarn add @cloudos/gitee-fs.
  2. 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

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago