Skip to content

jo/couchdb-bulk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Build Status

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

About

Pipe line-seperated JSON into CouchDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published