# mo-qiniu

> A plugin for qiniu storage

Latest version **1.0.6** (published 2022-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install mo-qiniu
pnpm add mo-qiniu
yarn add mo-qiniu
bun add mo-qiniu
```

Provides the commands `mscp`, `mlink`, `qiniu-upload`.

## Health

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

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2022-10-16 |
| First published | 2019-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 20.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mozhengfly |
| Maintainers | mozhengfly |
| Keywords | mozhengfly, qiniu, storage |

## Links

- npm: https://www.npmjs.com/package/mo-qiniu
- Repository: https://github.com/mozhengFly/qiniu-plugin
- Homepage: https://github.com/mozhengFly/qiniu-plugin#readme
- Issues: https://github.com/mozhengFly/qiniu-plugin/issues
- npm.io page: https://npm.io/package/mo-qiniu

## Dependencies (4)

- [qiniu](https://npm.io/package/qiniu.md) ^7.2.2
- [node-ssh](https://npm.io/package/node-ssh.md) ^13.0.0
- [commander](https://npm.io/package/commander.md) ^9.4.1
- [single-line-log](https://npm.io/package/single-line-log.md) ^1.1.2

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2022-10-16
- 1.0.5 — 2022-10-16
- 1.0.4 — 2022-10-16
- 1.0.3 — 2022-10-16
- 1.0.1 — 2021-11-30
- 1.0.0 — 2019-09-09

## README

# mo-qiniu

> A Simple Qiniuyun Upload Plugin

## Install

```bash
# install mo-qiniu
npm install mo-qiniu
```

## For Example

```javascript
const path = require('path');
const Qiniu = require('mo-qiniu');

const qiniu = new Qiniu({
    // Qiniu accessKey
    accessKey: '',
    // Qiniu secretKey
    secretKey: '',
   	// Bucket 
    // For example: mozhengfly
    bucket: '',
    // Space directory which start with /
    // For example: /test/mozhengfly
    remotePath: '',
    // Local file directory which need to upload
    localFileDirectory: path.resolve(__dirname, './dist'),
    // Whether to open the confirmation box before uploading 
    // default value is false
    needConfirm: true,
    /**
     * The function exec will be after the upload successful
     * @param files	The files which has been uploaded successful
     */
    success: function (files) {
        console.log(files);
    },
    /**
     * The function exec will be after the upload failed
     * @param files	The files which has not been uploaded successful
     */
    error: function (files) {
        console.log(files);
    }
});
// upload action
qiniu.upload();
```

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