1.4.1 • Published 5 years ago
@itsrauf/filer v1.4.1
Filer
File/Image Uploader and Link Shortener
Installation
npm install @itsrauf/filer
Usage Example
append __dirname
to destination
to upload to your directory
password is not required as Filer generates a new password per session if a password is not specified
const { Filer, Plugins } = require("@itsrauf/filer");
const uploader = new Filer(
{ destination: `${__dirname}/uploads`, port: 4200, password: <some random password> },
[new Plugins.Files(), new Plugins.Images(), new Plugins.Links()]
);
uploader.init();
uploader.on("ready", () => {
console.log("Ready at", uploader.options.port);
});
Built With
Express - Underlying Web Server
LowDB - JSON Database
Multer - multipart/form-data
Parser