couchdb-batch

Collect json docs into batches

Usage no npm install needed!

<script type="module">
  import couchdbBatch from 'https://cdn.skypack.dev/couchdb-batch';
</script>

README

couchdb-bulk

Batches a stream of single documents into bulk docs jsons.

Build Status

Installation

npm install -g couchdb-bulk

API Usage

var bulk = require('couchdb-bulk')

process.stdin
  .pipe(bulk({ batchSize: 3, batchTime: 100 }))
  .pipe(process.stdout)

CLI Usage

couchdb-bulk docs.jsonl

Tests

npm test