# imgupload58

> 招才猫图片上传

Latest version **1.2.6** (published 2017-11-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install imgupload58
pnpm add imgupload58
yarn add imgupload58
bun add imgupload58
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.6 |
| Published | 2017-11-24 |
| First published | 2017-08-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zbcoder |
| Maintainers | zbcoder |

## Links

- npm: https://www.npmjs.com/package/imgupload58
- npm.io page: https://npm.io/package/imgupload58

## Recent versions

- 1.2.6 (latest) — 2017-11-24
- 1.2.5 — 2017-11-24
- 1.2.4 — 2017-10-10
- 1.2.3 — 2017-09-13
- 1.2.2 — 2017-09-08
- 1.2.1 — 2017-08-30
- 1.1.1 — 2017-08-23
- 1.1.0 — 2017-08-08
- 1.0.2 — 2017-08-04
- 1.0.1 — 2017-08-04
- 1.0.0 — 2017-08-04

## README

## base64图片上传
----
### 安装
        npm i imgupload58 --save
### 使用
        import imgupload58 from 'imgupload58'
        imgupload58(base64,config)
### 参数说明
>   base64: 图片base64值
>
>    config: {
>
>           path : '/nowater/jltx/',  //图片存储文件夹路径
>
>           protocol : 'http',  //上传协议
>
>           cdn: '//upload.58cdn.com.cn/json?rand=',  //图片CDN路径
>
>           url: '//pic1.58cdn.com.cn',  //返回路径前缀
>
>           headers: {}, //请求头
>
>           compress: null //压缩比率 0-1
>
>}

### 返回值
    返回Promise对象，参数值为图片存储路径

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