@aircodelabs/file-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

usage

import { Instance } from "file-sdk";

const remote = {
  name: "http", // 使用 http 协议
  address: "127.0.0.1",
  port: 8080,
  family: "IPv4",
};
const region = "aliyun_hk"; // 存储区域,与 server 端 region 配置对应

const instance = Instance.create(remote, region);

const bucket = "hk-bucket1";

const files = await instance.listFile(bucket, "/prefix/");

Readme

Keywords

none

Package Sidebar

Install

npm i @aircodelabs/file-sdk

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

45 kB

Total Files

15

Last publish

Collaborators

  • spritejs
  • kevin_aircode
  • neo-aircode
  • adcent