Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.13 KB

File metadata and controls

26 lines (22 loc) · 1.13 KB

multer-sharp-gridfs-storage

BROKEN - DO NOT USE THIS PACKAGE 💀

This Packge is currently broken due to some issues releated to owner's code, and mainly due to bugs related to external packages:

Do not use this package!!!

Description

This package is writen to buypass buffering of the images in memory or on disk in the roadmap - client->sharp->gridfs.

Usage

To initialize a storage, the only required argument is GridFsBucket instance in constructor options:

    const { MulterSharpGridFS } = require('multer-sharp-gridfs-storage')
    const storage = new MulterSharpGridFS({
        gridFSBucket
    })

When useing this storage, every uploaded image will be passed through sharp() instance and from there to GridFs with a single stream of data, without buffering or storing in the middle.

For options details see TSDocs.