filehost
v2.0.1
Published
API for free file storage
Downloads
5
Readme
// require filehost
const filehost = require('filehost');
// defining temporary variable for downloadKey
let key;
// upload file.png
filehost.upload('file.png').then((downloadKey) => {
// save downloadKey for later use (db or variable)
key = downloadKey;
});
// defining the path for the downloaded file
let destinationPath = './downloadedfile.png';
// download the file using the saved key
filehost.download(key, destinationPath).then(() => {
// download has complete!
});
Installation
npm install filehost --save
Features
❁ Easy: The filehost package will give you a unique key when you upload a file, save it then use it again when you want to download and retrieve that file!
ϟ Fast: filehost works with a very simple model, and as a result is incredibly efficient. No signup or authentication required!
❤ Free: All hosting is totally free! Your files are also totally secure, they can only be accessed with the unique download key.
filehost support
If you need any support using this package feel free to contact the developer via Reddit