Skip to content

Node module for use UptoboxAPI, easy upload file (With Token)

License

Notifications You must be signed in to change notification settings

juliendu11/NodeJS-Uptobox-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node module for use UptoboxAPI, easy upload file (With Token)

Resources

License

Stars

Watchers

Forks

Packages

No packages published