0.1.15 • Published 8 years ago

imgupload v0.1.15

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

imgupload

Autohome Fastdfs picture upload node implementation.

Installation

npm install imgupload

Usage

var imgupload = require('imgupload');

imgupload().then();

Options

baseURL:

Type: String

keyURL

Type: String

source

Type: String

minutes

Type: String

uploadURL

Type: String

outFileName

Type: String

imgPath

Type: String

extname

Type: String

Example

var imgupload = require('./imgupload/index');

imgupload({
  imgPath: process.cwd() + '/src/images/'
}).then(function(dataList) {
  console.log(dataList);
});

Return data:

[{
    localURL: '/Users/luciy/Desktop/src/images/Rendering.jpg',
    onlineURL: 'g8/M0D/22/0D/wKgHz1Z8o0mAb481AABsDFfNEUg903.jpg'
}, {
    localURL: '/Users/luciy/Desktop/src/images/avsevsr.png',
    onlineURL: 'g8/M0E/18/16/wKjBz1Z8o0mADParAABJPD-j46o497.png'
}, {
    localURL: '/Users/luciy/Desktop/src/images/investigation.jpg',
    onlineURL: 'g16/M04/1F/7C/wKgH5lZ8o0mAdC6UAABT4TRdHt0865.jpg'
}, {
    localURL: '/Users/luciy/Desktop/src/images/math.png',
    onlineURL: 'g16/M03/1F/41/wKjBx1Z8o0mAdXJwAACHFtN-btA938.png'
}, {
    localURL: '/Users/luciy/Desktop/src/images/rem.png',
    onlineURL: 'g16/M0A/1F/4D/wKgH11Z8o0mAYsmZAADgeHHf17U462.png'
}]
0.1.15

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago