# gulp-oss-manager

> 基于阿里云 OSS SDK开发的文件上传助手

Latest version **0.0.4** (published 2022-02-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-oss-manager
pnpm add gulp-oss-manager
yarn add gulp-oss-manager
bun add gulp-oss-manager
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2022-02-11 |
| First published | 2022-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | NagateBu |
| Maintainers | nagate_bu |
| Keywords | gulpplugin, oss, ali-oss |

## Links

- npm: https://www.npmjs.com/package/gulp-oss-manager
- npm.io page: https://npm.io/package/gulp-oss-manager

## Dependencies (4)

- [ora](https://npm.io/package/ora.md) ^5.4.1
- [ali-oss](https://npm.io/package/ali-oss.md) ^6.16.0
- [through2](https://npm.io/package/through2.md) ^4.0.2
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8

## Recent versions

- 0.0.4 (latest) — 2022-02-11
- 0.0.3 — 2022-02-11
- 0.0.2 — 2022-02-10
- 0.0.1 — 2022-01-28

## README

# gulp-oss-manager

基于阿里云 OSS SDK开发的文件上传助手

### 安装

```shell
npm install -D gulp-oss-manager
```

### 使用

示例文件目录

    ---
     |
     |---- src
     |    |
     |    |---- App.vue
     |    |
     |    |---- OSS/    // 需要上传的目录
     |    |    |
     |    略   ｜---- logo.png
     |         |
     |         |---- max.png
     |         |
     |         略 （ 同 main 结构）
     |
     |---- 
     略

配置文件

```javascript
// gulpfile.js

const {src} = require("gulp");
const ossManager = require("gulp-oss-manager");

function upload () {
  return src("src/OSS/**/**.*").pipe(
    new ossManager({
      accessKeyId: '阿里云 accessKeyId',
      accessKeySecret: "阿里云 accessKeySecret",
      region: "阿里云 region",
      bucket: "阿里云 bucket",
      customPath: "自定义的路径，非必填",
      timeout: "超时时间，默认为60000ms，非必填"
    }),
  );
}

module.exports.default = upload;

```

---
_Source: https://npm.io/package/gulp-oss-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
