{"repo":"devconcept/multer-gridfs-storage","free":true,"listed":false,"github":"https://github.com/devconcept/multer-gridfs-storage","clone":"git clone https://github.com/devconcept/multer-gridfs-storage.git","description":"🍃 GridFS storage engine for Multer to store uploaded files directly to MongoDb","language":"TypeScript","stars":238,"topics":["gridfs","multer","gridfs-stream","mongodb","storage-engine","express","upload","multipart"],"license":"MIT","category":"data-pipelines","readme_excerpt":"Multer's GridFS storage engine [![Build Status][github-image]][github-url] [![Coverage Status][codecov-image]][codecov-url] ![Npm version][version-image] ![Downloads][downloads-image] [![GitHub Discussions][discussions-image]][discussions-url] GridFS storage engine for Multer to store uploaded files directly to MongoDb. 🔥 Features - Compatible with the latest major version of the MongoDB server and its Node.js driver. - Really simple api. - Runs on the actively maintained Node.js LTS releases. - Caching of url based connections. - Compatible with Mongoose connection objects. - Promise support. - Generator function support. - Support for existing and promise based database connections. - Storage operation buffering for incoming files while the connection is opening. - Use it as a multer plugin or inside an express middleware function. - Builtin Typescript support. - Dual package: works with both ESM import and CommonJS require . 🚀 Installation Using npm The package ships both ESM and CommonJS builds, so you can load it with either import { GridFsStorage } from 'multer-gridfs-storage' or const { GridFsStorage } = require('multer-gridfs-storage') . The examples below use ESM import syntax; swap in require if your project uses CommonJS. Basic usage example: 📄 API module(configuration): function The module returns a function that can be invoked to create a Multer storage engine. It also works as a class. It is up to you to decide the best way to invoke it. Configuration The con","default_branch":null,"files":null,"tree":[],"storefront":"/r/devconcept","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/devconcept/multer-gridfs-storage/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}