filehost

API for free file storage

Usage no npm install needed!

<script type="module">
  import filehost from 'https://cdn.skypack.dev/filehost';
</script>

README

filehost

Fast, flexible & lean implementation for free file hosting with NodeJS.


// 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