wepy-plugin-uploadimg
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

wepy-plugin-uploadimg

A plugin for wepy is used to upload images to sever and replace the link to url

Install

yarn add wepy-plugin-uploadimg --dev

config: {
  debugMode: false,
  delDistImg: true,
  limit: 1024,
  time: false,
  host: 'xxx',
  password: 'xxx',
  username: 'xxx',
  url: 'http://...',
  dirPath: '...',
}

useage 


import it and use nodejs use like


const UploadImg = require('./node_modules/wepy-plugin-uploadimg').default;

const uploadImgInstanse = new UploadImg({
  config: {
    ...
  },
});
uploadImgInstanse.UploadResoureFile();

Readme

Keywords

Package Sidebar

Install

npm i wepy-plugin-uploadimg

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

231 kB

Total Files

12

Last publish

Collaborators

  • hambutgertwo