@juliendu11/uptoboxapi
v0.2.0
Published
Node module for use UptoboxAPI
Downloads
7
Readme
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)
})();