@itsrauf/filer
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

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


Readme

Keywords

none

Package Sidebar

Install

npm i @itsrauf/filer

Weekly Downloads

2

Version

1.4.1

License

MIT

Unpacked Size

26.7 kB

Total Files

20

Last publish

Collaborators

  • itsrauf