@tomieric/qn-file-sync

0.2.3 • Public • Published

qn-file-sync

File sync to Qiniu

DOC

USAGE

$ npx @tomieric/qn-file-sync -c qiniu.js -d ./dist

# or
# default config file is `package.json`
$ npx @tomieric/qn-file-sync -d ./dist 

API

const qnFileSync = require('@tomieric/qn-file-sync')

/**
* qnFileSync(options)
*/
qnFileSync({
  # sync folder
  root: './svn/www',
  accessKey: 'your access key',
  secretKey: 'your secret key',
  bucket: 'your bucket name',
  origin: 'http://{bucket}.u.qiniudn.com',
  uploadURL: 'http://up-z2.qiniup.com/'
}).then(files => {})

options

  • root sync file
  • accessKey
  • secretKey
  • bucket
  • origin
  • uploadURL

Devlopmenet

npm test

(c) MIT LICENSE

Readme

Keywords

none

Package Sidebar

Install

npm i @tomieric/qn-file-sync

Weekly Downloads

1

Version

0.2.3

License

MIT

Unpacked Size

6.23 kB

Total Files

7

Last publish

Collaborators

  • tomieric