Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imgupload58

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imgupload58

招才猫图片上传

  • 1.2.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-92.86%
Maintainers
1
Weekly downloads
 
Created
Source

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对象,参数值为图片存储路径

FAQs

Package last updated on 24 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc