1.0.6 • Published 3 years ago

carry-cloud v1.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

carry-cloud

a module for uplaod the file in node app, make it easy & reliable.

Usage

Install

$ npm install carry-cloud --save-dev

Write the following code into the script field of your package.jion. e.g:

 "scripts": {
    "deploy": "carry-cloud \"dist/**\" --base dist --env test"
  }

Launch command in you Terminal

$ npm run deploy

Options

PropertyDescriptionDefault
namefolder namepackage.name
versionversionpackage.version
forceoverwrite'false' (@false : not overwrite, @true: force overwrite except production),
itemUploadBeforecallback upload before@function: (err, res) => {}
itemCallbackcallback upload finish when fileItem@function: (err, res) => {}
urlupload APIhttp://127.0.0.1:7002/file/cdn method is must POST

Can get more API into bin/carry-cloud

Example

For your better use of this module, i provide a express app, add POST API to test.

So, you can do it.

$ cd carry-cloud/example
$ npm install
$ npm start
$ npm run deploy

You will get response like this;

[satrt]: dist/1.js
[satrt]: dist/2.js
[success]: dist/1.js
[success]: dist/2.js
[complete] carry 2 file(s), success 2 file(s).

After

I want to make it better and better, if you are interested in this module, you can contact me by Email:980751937mu@gmail.com

finally

Welcome fork & star, Thanks All.

1.0.6

3 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago