connect-gridfs
GridFS file server for Connect.
Installation
npm install connect-gridfs
Options
db
— previously opened MongoDB Db instancegzip
—object
with gzip compression settings ortrue
for default gzip settings, defaulting tofalse
(gzipping disable)
gzip options
chunkSize
windowBits
level
memLevel
strategy
dictionary
Additional gzip options:
minLength
— sets the minimum length of a response that will be gzipped, all responses gzipping by defaultmimeTypes
— enables gzipping of responses for the specified MIME types, all responses gzipping by default
Example
var http = ;var mongodb = ;var connect = ;var connectGridfs = ; var app = ;var server = http; var db = 'test' '127.0.0.1' 27017 auto_reconnect: true w: 1 ;db;