Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Tug/node-growing-mongofile

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

A readable file stream for files that are growing in mongodb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published