npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

couchdb-bulk

1.0.1 • Public • Published

CouchDB Bulk

This is a little command line tool meant to eat line seperated JSON (CouchDB documents) on stdin and POSTing them to the _bulk_docs endpoint of a CouchDB server.

BuildStatus

Installation

npm install -g couchdb-bulk

API

const bulk = require('couchdb-bulk')
 
const url = 'http://localhost:5984/mydb'
 
process.stdin
  .pipe(bulk(url))
  .pipe(process.stdout)

CLI

For options and examples, use the built-in help

couchdb-bulk --help

Example:

cat test.jsonl | couchdb-bulk http://localhost:5984/testdb

Keywords

install

npm i couchdb-bulk

Downloadsweekly downloads

7

version

1.0.1

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability