New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hapi-good-mongostore

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-good-mongostore

Basic write stream that facilitates writing to MongoDB.

0.3.5
Source
npm
Version published
Weekly downloads
10
66.67%
Maintainers
4
Weekly downloads
 
Created
Source

npm version CircleCI

hapi-good-mongostore

Simple write stream that facilitates writing to MongoDB

Prerequisites

node >= 4 This module requires nodejs v4 or above.

Getting started

    npm install hapi-good-mongostore
Usage

hapi-good-mongostore is a write stream use to write to MongoDB in batches.

API
GoodMongoStore(dbUrl, [options])
  • dbUrl - MongoDB connection url

  • options - object properties

NameTypeDescription
clientOptions object

opts from node-mongodb-native#connect-options

collectionName string

Collection name

insertOptions object

Durability of writes

batchSize number

The number of documents consumed before writing to MongoDB

Run tests

bash test.sh

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

FAQs

Package last updated on 03 May 2017

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