Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A readable file stream for files that are growing in mongodb

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Readme.md

node-growing-mongofile

A hack of node-growing-file by Felix Geisendörfer to stream file from mongodb instead of the local filesystem

Installation

npm install growing-mongofile

Usage

var file = GrowingFile.open(db, 'my-growing-file.dat' [, options [, callback]]);
file.pipe(<some writeable stream>);

The file being read must exist in mongodb. Thus, when saving it, you must close it and re-open it. For this, you can simply use :

GrowingFile.createGridStore(db, filename, metadata, callback)

License

Written by Tugdual de Kerviler, licensed under the MIT license.

Something went wrong with that request. Please try again.