@code-easy/oss-common
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

oss-common

Install

npm install oss-common 

Start

// one of config
let client = new OssClient({
    MinIO: minioConfig,
});

let client = new OssClient({
    COS: cosConfig,
});

let client = new OssClient({
    OSS: ossConfig,
});

Api

get(key: string): Promise<Buffer>;

put(key: string, object: Buffer | string, meta?: OssMeta): Promise<OssPutRes>;
putFile(key: string, object: string, meta?: OssMeta): Promise<OssPutRes>;
del(key: string): Promise<boolean>;
ls(key: string): Promise<boolean>;
has(key: string): Promise<boolean>;

Readme

Keywords

none

Package Sidebar

Install

npm i @code-easy/oss-common

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

35.7 kB

Total Files

18

Last publish

Collaborators

  • bqxu