Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajpocus/mongodb-stream
Writable stream for node >=0.10 that dumps data into mongodb.
https://github.com/ajpocus/mongodb-stream
Last synced: about 1 month ago
JSON representation
Writable stream for node >=0.10 that dumps data into mongodb.
- Host: GitHub
- URL: https://github.com/ajpocus/mongodb-stream
- Owner: ajpocus
- Created: 2013-08-08T16:26:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-17T22:52:36.000Z (over 11 years ago)
- Last Synced: 2024-12-01T07:23:48.618Z (about 2 months ago)
- Language: JavaScript
- Size: 199 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mongodb-stream
A writable stream that feeds data into mongodb, for use with node >= 0.10.## Usage
Install mongodb-stream from npm:npm install mongodb-stream
Anywhere you'd like to stream data into mongodb, you can do it like this:var MongoStream = request('mongodb-stream');
var stream = new MongoSream({
databaseUri: "mongodb://local/host/test",
collection: "tweets"
});
stream.init(function (err, stream) {
request(...).pipe(stream); // the stream writes every instance to mongoDB
});