1.0.21 • Published 1 year ago

@cloudos/gitee-fs v1.0.21

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago