0.2.0 • Published 4 years ago

@juliendu11/uptoboxapi v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Node JS uptobox API

Upload file with node JS

Install

npm i @juliendu11/uptoboxapi

How to use ?

Only one file

  const uptoboxAPI = require('@juliendu11/uptoboxapi');
  (async () => {
    let value = await uptoboxAPI.uploadOneFile('{TOKEN}','{FILE}')
     console.log(value)
//{
//   name: 'filename',
//   size: filesize,
//   url: 'https://uptobox.com/rieo9f88dudx',
//   deleteUrl: 'https://uptobox.com/rieo9f88dudx?killcode=6gep5zig3g'
// }
})();

Multiple files in same times

  const uptoboxAPI = require('@juliendu11/uptoboxapi');
  (async () => {
     const filesPath =[
        './package.json',
        './package-lock.json'
    ]
    let value = await uptoboxAPI.uploadMutlipleFiles('{TOKEN}',filesPath)
    console.log(value)
})();

Dependencies