An open API service indexing awesome lists of open source software.

https://github.com/volcengine/ve-tos-js-sdk

Volcengine Object Storage(TOS) JavaScript SDK
https://github.com/volcengine/ve-tos-js-sdk

Last synced: about 1 year ago
JSON representation

Volcengine Object Storage(TOS) JavaScript SDK

Awesome Lists containing this project

README

          

# Volcengine Object Storage(TOS) JS SDK

## Install

### yarn

```shell
yarn add @volcengine/tos-sdk
```

### npm

```shell
npm i @volcengine/tos-sdk
```

## Use JS SDK

- Import

```js
// use import
import { TosClient } from '@volcengine/tos-sdk';

// use require
const { TosClient } = require('@volcengine/tos-sdk');
```

- Create a client

```js
const client = new TosClient({
accessKeyId: 'Your Access Key',
accessKeySecret: 'Your Secret Key',
region: 'cn-beijing',
endpoint: 'endpoint',
});
```

- More example, see test and example folder

## Changelog

Detailed changes for each release are documented in the [CHANGELOG.md](https://github.com/volcengine/ve-tos-js-sdk/blob/main/CHANGELOG.md).