New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mongo-write-stream

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-write-stream

Writable streams to mongodb collections.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

mongo-write-stream

build status

Node.js module that creates a writable object stream to a mongodb collection.

npm install mongo-write-stream

Example.

var mongoWriteStream = require('mongo-write-stream');
var collectionWriteStream = mongoWriteStream('mongodb://hostname/mydb');

someObjectReadableStream.pipe(collectionWriteStream('collectionName'));

Instead of a connection string you can also pass a mongodb native driver database instance or a mongojs database instance to avoid duplicate connections.

Keywords

mongo

FAQs

Package last updated on 20 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts